diff options
Diffstat (limited to 'libX11/src/util')
-rw-r--r-- | libX11/src/util/makefile | 6 | ||||
-rw-r--r-- | libX11/src/util/makekeys.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/libX11/src/util/makefile b/libX11/src/util/makefile new file mode 100644 index 000000000..27da68335 --- /dev/null +++ b/libX11/src/util/makefile @@ -0,0 +1,6 @@ +TTYAPP=makekeys + +DEFINES += X11_t TRANS_CLIENT + +CSRCS = makekeys.c + diff --git a/libX11/src/util/makekeys.c b/libX11/src/util/makekeys.c index 36d4d4b63..516f97115 100644 --- a/libX11/src/util/makekeys.c +++ b/libX11/src/util/makekeys.c @@ -34,6 +34,7 @@ from The Open Group. #include <X11/keysymdef.h> #include <stdio.h> #include <stdlib.h> +#include <unistd.h> #include "../Xresinternal.h" @@ -158,7 +159,7 @@ main(int argc, char *argv[]) num_found = 0; for (z = ksnum; z < KTNUM; z++) { max_rehash = 0; - for (name = tab, i = z; --i >= 0;) + for (name = &tab[0], i = z; --i >= 0;) *name++ = 0; for (i = 0; i < ksnum; i++) { name = info[i].name; |