summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2006-11-06 10:15:27 -0500
committerAli Saidi <saidi@eecs.umich.edu>2006-11-06 10:15:27 -0500
commit430622c173b676c7a53aa5623d5197a26f9c9190 (patch)
tree6e619f6978179a6e4ce6828be2fc4d66533000b6
parent257e09d62622676b84b5166854850024a5f72bcc (diff)
downloadgem5-430622c173b676c7a53aa5623d5197a26f9c9190.tar.xz
replace NULL with 0.... Why isn't NULL defined by default on Mac OS X I don't know
--HG-- extra : convert_revision : b60403445bd4e855732fd4e6753068abd90ecc9d
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index ce5ab4bb8..59d40d5cc 100644
--- a/SConstruct
+++ b/SConstruct
@@ -271,8 +271,8 @@ if not conf.CheckLib(py_version_name):
Exit(1)
# On Solaris you need to use libsocket for socket ops
-if not conf.CheckLibWithHeader(None, 'sys/socket.h', 'C', 'accept(0,NULL,NULL);'):
- if not conf.CheckLibWithHeader('socket', 'sys/socket.h', 'C', 'accept(0,NULL,NULL);'):
+if not conf.CheckLibWithHeader(None, 'sys/socket.h', 'C++', 'accept(0,0,0);'):
+ if not conf.CheckLibWithHeader('socket', 'sys/socket.h', 'C++', 'accept(0,0,0);'):
print "Can't find library with socket calls (e.g. accept())"
Exit(1)