diff options
author | Christian Hesse <mail@eworm.de> | 2015-01-04 18:26:31 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2015-01-04 18:26:31 +0100 |
commit | 8cce6dc19907ba44e29555fa83168619365beb32 (patch) | |
tree | 614133f53c9a6493d7d505c2ac18528ab3cadf82 /bin/ykfde.c | |
parent | 3a330ba3316e63c515011dd9bcfdbfc64c2e2b96 (diff) | |
download | mkinitcpio-ykfde-8cce6dc19907ba44e29555fa83168619365beb32.tar.gz mkinitcpio-ykfde-8cce6dc19907ba44e29555fa83168619365beb32.tar.zst |
make defines more portable
Looks like _DEFAULT_SOURCE requires a recent glibc and does not work on
Fedora. So use _XOPEN_SOURCE and _XOPEN_SOURCE_EXTENDED instead.
Reported-by: Benjamin Pereto <benjamin.pereto@gmail.com>
Diffstat (limited to 'bin/ykfde.c')
-rw-r--r-- | bin/ykfde.c | 7 |
1 files changed, 5 insertions, 2 deletions
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> |