[BACK]Return to patch-src_common_common_h CVS log [TXT][DIR] Up to [local] / ports / games / ufoai / patches

File: [local] / ports / games / ufoai / patches / Attic / patch-src_common_common_h (download)

Revision 1.1, Tue Dec 29 03:42:25 2009 UTC (14 years, 6 months ago) by yason
Branch: MAIN

patches from Antti Harri

$OpenBSD$
--- src/common/common.h.orig	Fri Apr 25 19:15:29 2008
+++ src/common/common.h	Tue Nov  4 13:00:17 2008
@@ -74,11 +74,49 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
 #    define CPUSTRING "Unknown"
 #  endif
 
-#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
+#elif defined(__FreeBSD__)
 #  ifdef DEBUG
 #    define BUILDSTRING "FreeBSD DEBUG"
 #  else
 #    define BUILDSTRING "FreeBSD RELEASE"
+#  endif
+#  ifndef SHARED_EXT
+#    define SHARED_EXT "so"
+#  endif
+#  if defined  __i386__
+#    define CPUSTRING "i386"
+#  elif defined __x86_64__
+#    define CPUSTRING "x86_64"
+#  elif defined __alpha__
+#    define CPUSTRING "axp"
+#  else
+#    define CPUSTRING "Unknown"
+#  endif
+
+#elif defined(__NetBSD__)
+#  ifdef DEBUG
+#    define BUILDSTRING "NetBSD DEBUG"
+#  else
+#    define BUILDSTRING "NetBSD RELEASE"
+#  endif
+#  ifndef SHARED_EXT
+#    define SHARED_EXT "so"
+#  endif
+#  if defined  __i386__
+#    define CPUSTRING "i386"
+#  elif defined __x86_64__
+#    define CPUSTRING "x86_64"
+#  elif defined __alpha__
+#    define CPUSTRING "axp"
+#  else
+#    define CPUSTRING "Unknown"
+#  endif
+
+#elif defined(__OpenBSD__)
+#  ifdef DEBUG
+#    define BUILDSTRING "OpenBSD DEBUG"
+#  else
+#    define BUILDSTRING "OpenBSD RELEASE"
 #  endif
 #  ifndef SHARED_EXT
 #    define SHARED_EXT "so"