summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorBert <ber.t@gmx.com>2011-09-03 14:22:06 +0200
committerBert <ber.t@gmx.com>2011-09-03 14:22:06 +0200
commitde6b58a3156e64963f5bf48fa446bfbf3bb9da3f (patch)
tree7b99e175cdd02eab8dd54ca0f9ec74675944a311 /options.c
parente2ea759444145d2af623babe633ca9ac3d95dc44 (diff)
downloadnsxiv-de6b58a3156e64963f5bf48fa446bfbf3bb9da3f.tar.zst
Unified feature test macro requirements
Diffstat (limited to 'options.c')
-rw-r--r--options.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/options.c b/options.c
index e45c2b7..e05c2cc 100644
--- a/options.c
+++ b/options.c
@@ -16,16 +16,17 @@
* Foundation, Inc., 51 Franklin Street, 5th Floor, Boston, MA 02110-1301, USA.
*/
-#define _XOPEN_SOURCE
-#define _IMAGE_CONFIG
+#define _POSIX_C_SOURCE 2 /* for getopt(3) */
+#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
-#include <unistd.h>
#include "options.h"
#include "util.h"
+
+#define _IMAGE_CONFIG
#include "config.h"
options_t _options;