diff options
author | fredb <fredb> | 2003-02-27 14:42:55 +0000 |
---|---|---|
committer | fredb <fredb> | 2003-02-27 14:42:55 +0000 |
commit | eeeec59212ff0fe33fcf48bd4cfb6d3c04850ea5 (patch) | |
tree | 31984f4ebb67f82c221b080e9d9841aa4f18fa37 /comms/mgetty+sendfax | |
parent | 9b6e1341a1ca65d523d864f9f993592f7932ef4a (diff) | |
download | pkgsrc-eeeec59212ff0fe33fcf48bd4cfb6d3c04850ea5.tar.gz |
Be consistent about testing for __GLIBC__.
Diffstat (limited to 'comms/mgetty+sendfax')
-rw-r--r-- | comms/mgetty+sendfax/patches/patch-al | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/comms/mgetty+sendfax/patches/patch-al b/comms/mgetty+sendfax/patches/patch-al index a2c48f8a4be..a4568e5c088 100644 --- a/comms/mgetty+sendfax/patches/patch-al +++ b/comms/mgetty+sendfax/patches/patch-al @@ -1,4 +1,4 @@ -$NetBSD: patch-al,v 1.1 2003/02/26 21:45:45 fredb Exp $ +$NetBSD: patch-al,v 1.2 2003/02/27 14:42:55 fredb Exp $ --- utmp.c.orig 2001-12-17 16:43:25.000000000 -0600 +++ utmp.c @@ -19,7 +19,7 @@ $NetBSD: patch-al,v 1.1 2003/02/26 21:45:45 fredb Exp $ - -#ifndef ENOENT -#include <errno.h> -+#if !defined(SVR4) && !defined(NETBSD_UTMPX) && __GLIBC__ < 2 ++#if !defined(SVR4) && !defined(NETBSD_UTMPX) && !defined(__GLIBC__) || __GLIBC__ < 2 +# include <sys/stat.h> +# ifndef ENOENT +# include <errno.h> @@ -51,7 +51,7 @@ $NetBSD: patch-al,v 1.1 2003/02/26 21:45:45 fredb Exp $ +char id[4]; +struct utmpx ut; +#else -+# if !(defined(SVR4) || (defined(__GLIBC__) && __GLIBC__ >= 2) ++# if !defined(SVR4) && !defined(__GLIBC__) || __GLIBC__ < 2 struct stat st; +# endif +#endif |