From f458397d5aa9077988a00189899681f40fbb3582 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Tue, 24 May 2011 18:58:36 +0100 Subject: [PATCH] no, getopt.h is gnu specific --- 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 index dfe70c5..81a1eb4 100644 --- a/cat.c +++ b/cat.c @@ -1,7 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include #include -#include #include #include "util.h" diff --git a/config.mk b/config.mk index c127425..9753614 100644 --- 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 index e7182d5..9fb43a0 100644 --- a/date.c +++ b/date.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include "util.h" diff --git a/echo.c b/echo.c index cf4dcd8..fa45d8b 100644 --- a/echo.c +++ b/echo.c @@ -2,7 +2,6 @@ #include #include #include -#include #include int diff --git a/grep.c b/grep.c index a66f8d4..2645ef8 100644 --- a/grep.c +++ b/grep.c @@ -2,7 +2,6 @@ #include #include #include -#include #include #include diff --git a/ln.c b/ln.c index 35ad7d5..e61bb7c 100644 --- a/ln.c +++ b/ln.c @@ -2,7 +2,6 @@ #include #include #include -#include #include "util.h" int diff --git a/rm.c b/rm.c index e3ca462..fe6e2ce 100644 --- a/rm.c +++ b/rm.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include "util.h" diff --git a/sleep.c b/sleep.c index 607653c..39fbae8 100644 --- a/sleep.c +++ b/sleep.c @@ -1,7 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include #include -#include #include "util.h" int diff --git a/tee.c b/tee.c index 81baff2..3322d02 100644 --- a/tee.c +++ b/tee.c @@ -3,7 +3,6 @@ #include #include #include -#include #include "util.h" int diff --git a/touch.c b/touch.c index b8b82ac..4f0cfbf 100644 --- a/touch.c +++ b/touch.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #include #include diff --git a/wc.c b/wc.c index a783d8b..49979c9 100644 --- a/wc.c +++ b/wc.c @@ -3,7 +3,6 @@ #include #include #include -#include #include #include "util.h"