optarg and friends want _XOPEN_SOURCE 600, and <unistd.h> - Petr Pavlu

This commit is contained in:
Paul LeoNerd Evans 2011-08-25 22:49:51 +01:00
parent 447a3e7ab9
commit 427a98693e
1 changed files with 4 additions and 1 deletions

5
demo.c
View File

@ -1,5 +1,8 @@
// we want optarg
#define _XOPEN_SOURCE 600
#include <stdio.h>
#include <getopt.h>
#include <unistd.h>
#include <errno.h>
#include "termkey.h"