define -D_XOPEN_SOURCE in config.mk

Remove from su.c and login.c
This commit is contained in:
sin 2014-06-04 15:11:54 +01:00
parent 1b28deba3d
commit 8441c95a2f
3 changed files with 1 additions and 3 deletions

View File

@ -8,6 +8,6 @@ MANPREFIX = $(PREFIX)/share/man
#CC = gcc #CC = gcc
#CC = musl-gcc #CC = musl-gcc
LD = $(CC) 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) CFLAGS = -std=c99 -Wall -Wextra $(CPPFLAGS)
LDFLAGS = -s -lcrypt # -static LDFLAGS = -s -lcrypt # -static

View File

@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
#define _XOPEN_SOURCE
#include <errno.h> #include <errno.h>
#include <grp.h> #include <grp.h>
#include <pwd.h> #include <pwd.h>

1
su.c
View File

@ -1,5 +1,4 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
#define _XOPEN_SOURCE
#include <sys/types.h> #include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <errno.h> #include <errno.h>