diff options
author | fredb <fredb@pkgsrc.org> | 2003-02-27 14:42:55 +0000 |
---|---|---|
committer | fredb <fredb@pkgsrc.org> | 2003-02-27 14:42:55 +0000 |
commit | a0cf782e7c28a4ceb64f2a25783755d4cf342877 (patch) | |
tree | 31984f4ebb67f82c221b080e9d9841aa4f18fa37 /comms/mgetty+sendfax | |
parent | c2ec4cb5ebba8f08ba0c1e1ac034edc7e799ecf7 (diff) | |
download | pkgsrc-a0cf782e7c28a4ceb64f2a25783755d4cf342877.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 |