summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerh <erh@pkgsrc.org>2003-12-05 15:41:06 +0000
committererh <erh@pkgsrc.org>2003-12-05 15:41:06 +0000
commit1f5a1585555c6019f0353a24baa4d634f572c4a4 (patch)
treec03b5a35a16a1121da76e485bd1bde657b540b78
parenta38f59c53faeb4a6a23197c29bc7a38bf54ca7e1 (diff)
downloadpkgsrc-1f5a1585555c6019f0353a24baa4d634f572c4a4.tar.gz
On AIX h_errno is a function call. Don't try to redefine it.
-rw-r--r--pkgtools/libnbcompat/files/nbcompat.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgtools/libnbcompat/files/nbcompat.h b/pkgtools/libnbcompat/files/nbcompat.h
index 06b5617f00c..8c2e97d4a88 100644
--- a/pkgtools/libnbcompat/files/nbcompat.h
+++ b/pkgtools/libnbcompat/files/nbcompat.h
@@ -1,4 +1,4 @@
-/* $NetBSD: nbcompat.h,v 1.26 2003/10/10 10:15:09 grant Exp $ */
+/* $NetBSD: nbcompat.h,v 1.27 2003/12/05 15:41:06 erh Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -381,8 +381,10 @@ extern int optind;
#endif
#if !HAVE_H_ERRNO_D
+#ifndef _AIX
extern int h_errno;
#endif
+#endif
#define HAVE_H_ERRNO 1 /* XXX: an assumption for now... */
#if !HAVE_FCLOSE_D