* lib/sgetspent.c: Only compile ifndef HAVE_SGETSPENT
This commit is contained in:
parent
686ac847aa
commit
b5200cf753
@ -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>
|
2009-04-06 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
|
* lib/sgetspent.c: Replace strtol() by getlong(). Also detect more
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
* Copyright (c) 1989 - 1994, Julianne Frances Haugh
|
* Copyright (c) 1989 - 1994, Julianne Frances Haugh
|
||||||
* Copyright (c) 1996 - 1998, Marek Michałkiewicz
|
* Copyright (c) 1996 - 1998, Marek Michałkiewicz
|
||||||
* Copyright (c) 2003 - 2005, Tomasz Kłoczko
|
* Copyright (c) 2003 - 2005, Tomasz Kłoczko
|
||||||
|
* Copyright (c) 2009 , Nicolas François
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@ -31,6 +32,9 @@
|
|||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
|
/* Newer versions of Linux libc already have shadow support. */
|
||||||
|
#ifndef HAVE_SGETSPENT
|
||||||
|
|
||||||
#ident "$Id$"
|
#ident "$Id$"
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
@ -198,4 +202,7 @@ struct spwd *sgetspent (const char *string)
|
|||||||
|
|
||||||
return (&spwd);
|
return (&spwd);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
extern int errno; /* warning: ANSI C forbids an empty source file */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user