]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chfn, setpwnam: let config.h be in control of extensions in use
authorSami Kerola <kerolasa@iki.fi>
Wed, 23 Nov 2011 21:36:57 +0000 (22:36 +0100)
committerSami Kerola <sami.kerola@tomtom.com>
Tue, 29 Nov 2011 16:58:00 +0000 (17:58 +0100)
The autotools will set _GNU_SOURCE which removes necessity to have
any _*_SOURCE definition in *.c files.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
login-utils/chfn.c
login-utils/setpwnam.c

index 7e87999d543d3c76a6e8defdd2134c7a7bf7d003..f3fdfa78f93f66326f3d92c12938cf259f9cd404 100644 (file)
@@ -21,8 +21,6 @@
  *
  */
 
-#define _BSD_SOURCE           /* for strcasecmp() */
-
 #include <sys/types.h>
 #include <stdio.h>
 #include <string.h>
index 9299ffa831839e9a4d9f6588be334f32ad3671e5..92d1ac90f1005bbb08c89fb8d7c002b7a6169243 100644 (file)
@@ -46,9 +46,6 @@
 
 #undef DEBUG
 
-/*  because I use getpwent(), putpwent(), etc... */
-#define _SVID_SOURCE
-
 #include <sys/types.h>
 #include <stdio.h>
 #include <string.h>