sbase

suckless unix tools
git clone git://git.2f30.org/sbase.git
Log | Files | Refs | README | LICENSE

commit f458397d5aa9077988a00189899681f40fbb3582
parent da547fb294f88aa0645fab528008b87404434131
Author: Connor Lane Smith <cls@lubutu.com>
Date:   Tue May 24 18:58:36 +0100

no, getopt.h is gnu specific
Diffstat:
cat.c | 1-
config.mk | 2+-
date.c | 1-
echo.c | 1-
grep.c | 1-
ln.c | 1-
rm.c | 1-
sleep.c | 1-
tee.c | 1-
touch.c | 1-
wc.c | 1-
11 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/cat.c b/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" diff --git a/config.mk b/config.mk @@ -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 diff --git a/date.c b/date.c @@ -2,7 +2,6 @@ #include <stdio.h> #include <stdlib.h> #include <time.h> -#include <getopt.h> #include <unistd.h> #include "util.h" diff --git a/echo.c b/echo.c @@ -2,7 +2,6 @@ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> -#include <getopt.h> #include <unistd.h> int diff --git a/grep.c b/grep.c @@ -2,7 +2,6 @@ #include <regex.h> #include <stdbool.h> #include <stdio.h> -#include <getopt.h> #include <stdlib.h> #include <unistd.h> diff --git a/ln.c b/ln.c @@ -2,7 +2,6 @@ #include <stdbool.h> #include <stdlib.h> #include <unistd.h> -#include <getopt.h> #include "util.h" int diff --git a/rm.c b/rm.c @@ -5,7 +5,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <getopt.h> #include <unistd.h> #include "util.h" diff --git a/sleep.c b/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 diff --git a/tee.c b/tee.c @@ -3,7 +3,6 @@ #include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <getopt.h> #include "util.h" int diff --git a/touch.c b/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> diff --git a/wc.c b/wc.c @@ -3,7 +3,6 @@ #include <stdbool.h> #include <stdio.h> #include <stdlib.h> -#include <getopt.h> #include <unistd.h> #include "util.h"