no, getopt.h is gnu specific
This commit is contained in:
parent
da547fb294
commit
f458397d5a
1
cat.c
1
cat.c
@ -1,7 +1,6 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <unistd.h>
|
||||
#include "util.h"
|
||||
|
||||
|
@ -6,6 +6,6 @@ VERSION = 0.0
|
||||
|
||||
AR = ar
|
||||
|
||||
CPPFLAGS = -D_BSD_SOURCE
|
||||
CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2
|
||||
CFLAGS = -Os -ansi -Wall -pedantic $(CPPFLAGS)
|
||||
LDFLAGS = -s -static
|
||||
|
1
date.c
1
date.c
@ -2,7 +2,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <getopt.h>
|
||||
#include <unistd.h>
|
||||
#include "util.h"
|
||||
|
||||
|
1
echo.c
1
echo.c
@ -2,7 +2,6 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <unistd.h>
|
||||
|
||||
int
|
||||
|
1
grep.c
1
grep.c
@ -2,7 +2,6 @@
|
||||
#include <regex.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <getopt.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
1
ln.c
1
ln.c
@ -2,7 +2,6 @@
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include "util.h"
|
||||
|
||||
int
|
||||
|
1
rm.c
1
rm.c
@ -5,7 +5,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
#include <unistd.h>
|
||||
#include "util.h"
|
||||
|
||||
|
1
sleep.c
1
sleep.c
@ -1,7 +1,6 @@
|
||||
/* See LICENSE file for copyright and license details. */
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include "util.h"
|
||||
|
||||
int
|
||||
|
1
tee.c
1
tee.c
@ -3,7 +3,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include <getopt.h>
|
||||
#include "util.h"
|
||||
|
||||
int
|
||||
|
1
touch.c
1
touch.c
@ -3,7 +3,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <getopt.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include <utime.h>
|
||||
|
Loading…
Reference in New Issue
Block a user