freebsd-ports/net/xorp/files/patch-site_scons__config__allconfig.py
Antoine Brodin 54dc2eefda - Update to 1.8.5
- Unbreak and unexpire
- Stage support

PR:		ports/186982
Submitted by:	Johannes 5 Joemann
2014-02-26 21:54:59 +00:00

26 lines
1.3 KiB
Python

--- ./site_scons/config/allconfig.py.orig 2012-01-11 17:46:46.000000000 +0000
+++ ./site_scons/config/allconfig.py 2014-02-26 21:17:13.000000000 +0000
@@ -21,6 +21,7 @@
import os
import string
from SCons.Script.SConscript import SConsEnvironment
+import fnmatch;
# TODO SCons support for headerfilename needs to be fixed at source--
# that would let us use confdefs.h for the include file header
@@ -226,10 +227,12 @@
if has_af_inet and has_sock_raw:
conf.Define('HAVE_IP_RAW_SOCKETS')
# TODO: This needs to be properly detected.
- # TODO: This used to check for bsd and linux in an error prone
- # way. Now, do negative checks, but this could break Solaris
+ # <http://www.xorp.org/bugzilla/show_bug.cgi?id=106#c1>:
+ # TODO: This used to check for openbsd and linux in an error prone
+ # way. Now, do negative checks, but this could break Solaris and other OS
# (or not..no idea if it supports raw or not).
- if not (env.has_key('mingw') and env['mingw']):
+ if not ((env.has_key('mingw') and env['mingw']) or
+ fnmatch.fnmatch(host_os, 'freebsd*')):
conf.Define('IPV4_RAW_OUTPUT_IS_RAW')
conf.Define('IPV4_RAW_INPUT_IS_RAW')