ubase

suckless linux base utils
git clone git://git.2f30.org/ubase
Log | Files | Refs | README | LICENSE

commit 8441c95a2fbdab43f3ed6efdd80388fee4d27850
parent 1b28deba3dc648cd2a67c9ea6f8db26fee416fec
Author: sin <sin@2f30.org>
Date:   Wed,  4 Jun 2014 15:11:54 +0100

define -D_XOPEN_SOURCE in config.mk

Remove from su.c and login.c

Diffstat:
Mconfig.mk | 2+-
Mlogin.c | 1-
Msu.c | 1-
3 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/config.mk b/config.mk @@ -8,6 +8,6 @@ MANPREFIX = $(PREFIX)/share/man #CC = gcc #CC = musl-gcc LD = $(CC) -CPPFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 +CPPFLAGS = -D_XOPEN_SOURCE -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 CFLAGS = -std=c99 -Wall -Wextra $(CPPFLAGS) LDFLAGS = -s -lcrypt # -static diff --git a/login.c b/login.c @@ -1,5 +1,4 @@ /* See LICENSE file for copyright and license details. */ -#define _XOPEN_SOURCE #include <errno.h> #include <grp.h> #include <pwd.h> diff --git a/su.c b/su.c @@ -1,5 +1,4 @@ /* See LICENSE file for copyright and license details. */ -#define _XOPEN_SOURCE #include <sys/types.h> #include <unistd.h> #include <errno.h>