+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
* 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
#include <config.h>
+/* Newer versions of Linux libc already have shadow support. */
+#ifndef HAVE_SGETSPENT
+
#ident "$Id$"
#include <sys/types.h>
return (&spwd);
}
+#else
+extern int errno; /* warning: ANSI C forbids an empty source file */
+#endif