Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't use full path to include, avoids

  "<stdin>", line 4: warning: #include of /usr/include/... may be non-portable

warning with Sun Studio.
  • Loading branch information...
commit 089d4c29fdfa0f2646914364bbdc9b54e19a9bee 1 parent dc5dab9
sketch authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 mk/endian.mk
View
10 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
Please sign in to comment.
Something went wrong with that request. Please try again.