summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorsketch <sketch@pkgsrc.org>2009-01-14 17:27:37 +0000
committersketch <sketch@pkgsrc.org>2009-01-14 17:27:37 +0000
commitc4474d647e03715dc3486ce2b648c993a56073bd (patch)
tree9527f33993d81f530b00c54cfeaceb146f62cc1d /mk
parentd479b7b1e505879cd983a6ff3347f576cda2b67a (diff)
downloadpkgsrc-c4474d647e03715dc3486ce2b648c993a56073bd.tar.gz
Don't use full path to include, avoids
"<stdin>", line 4: warning: #include of /usr/include/... may be non-portable warning with Sun Studio.
Diffstat (limited to 'mk')
-rw-r--r--mk/endian.mk10
1 files changed, 5 insertions, 5 deletions
diff --git a/mk/endian.mk b/mk/endian.mk
index 623272ed6e9..33dd383dffb 100644
--- a/mk/endian.mk
+++ b/mk/endian.mk
@@ -1,4 +1,4 @@
-# $NetBSD: endian.mk,v 1.5 2007/03/08 23:11:20 rillig Exp $
+# $NetBSD: endian.mk,v 1.6 2009/01/14 17:27:37 sketch Exp $
#
# Determine the endianness of the platform by checking header files.
#
@@ -18,13 +18,13 @@
.if !defined(MACHINE_ENDIAN)
. if exists(/usr/include/endian.h)
-_ENDIAN_H= /usr/include/endian.h # Linux
+_ENDIAN_H= endian.h # Linux
. elif exists(/usr/include/sys/endian.h)
-_ENDIAN_H= /usr/include/sys/endian.h # NetBSD>=1.5
+_ENDIAN_H= sys/endian.h # NetBSD>=1.5
. elif exists(/usr/include/machine/endian.h)
-_ENDIAN_H= /usr/include/machine/endian.h # NetBSD<1.5
+_ENDIAN_H= machine/endian.h # NetBSD<1.5
. elif exists(/usr/include/sys/byteorder.h)
-_ENDIAN_H= /usr/include/sys/byteorder.h # Solaris
+_ENDIAN_H= sys/byteorder.h # Solaris
. else
_ENDIAN_H= /dev/null
. endif