ports/converters/showkey/files/patch-showkey.c
Alexey Dokuchaev 94846b36bf - Update to version 1.7 and drop stale mastersite
- Provide better understandable COMMENT text
- Remove USES=gmake, builds with any make(1) implementation now
- Add a patch to fix compilation warnings exposed by Clang
- Install couple of documentation files
- Transfer maintainership to the submitter

PR:	199311
2015-04-10 15:10:04 +00:00

19 lines
342 B
C

--- showkey.c.orig 2012-03-03 16:44:46 UTC
+++ showkey.c
@@ -11,6 +11,7 @@
#include <string.h>
#include <stdbool.h>
#include <stdlib.h>
+#include <unistd.h>
#define ALT 0x80
#define ESC 0x1b
@@ -80,7 +81,7 @@ static void visualize(int c, /*@out@*/ch
}
-main()
+int main()
{
struct termios cooked, raw;
unsigned char c;