* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT

This commit is contained in:
nekral-guest 2009-04-10 22:35:07 +00:00
parent 686ac847aa
commit b5200cf753
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more

View File

@ -2,6 +2,7 @@
* Copyright (c) 1989 - 1994, Julianne Frances Haugh
* Copyright (c) 1996 - 1998, Marek Michałkiewicz
* Copyright (c) 2003 - 2005, Tomasz Kłoczko
* Copyright (c) 2009 , Nicolas François
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -31,6 +32,9 @@
#include <config.h>
/* Newer versions of Linux libc already have shadow support. */
#ifndef HAVE_SGETSPENT
#ident "$Id$"
#include <sys/types.h>
@ -198,4 +202,7 @@ struct spwd *sgetspent (const char *string)
return (&spwd);
}
#else
extern int errno; /* warning: ANSI C forbids an empty source file */
#endif