diff options
-rw-r--r-- | bin/ykfde-cpio.c | 7 | ||||
-rw-r--r-- | bin/ykfde.c | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/bin/ykfde-cpio.c b/bin/ykfde-cpio.c index 860c93b..996af04 100644 --- a/bin/ykfde-cpio.c +++ b/bin/ykfde-cpio.c @@ -8,8 +8,11 @@ * $ gcc -o mkcpio mkcpio.c -larchive */ -#ifndef _DEFAULT_SOURCE -#define _DEFAULT_SOURCE +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE +# ifndef _XOPEN_SOURCE_EXTENDED +# define _XOPEN_SOURCE_EXTENDED +# endif #endif #include <dirent.h> diff --git a/bin/ykfde.c b/bin/ykfde.c index 182f840..663d198 100644 --- a/bin/ykfde.c +++ b/bin/ykfde.c @@ -8,8 +8,11 @@ * $ gcc -o ykfde ykfde.c -lykpers-1 -lyubikey -lcryptsetup -liniparser */ -#ifndef _DEFAULT_SOURCE -#define _DEFAULT_SOURCE +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE +# ifndef _XOPEN_SOURCE_EXTENDED +# define _XOPEN_SOURCE_EXTENDED +# endif #endif #include <fcntl.h> |