replace NULL with 0.... Why isn't NULL defined by default on Mac OS X I don't know
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 6 Nov 2006 15:15:27 +0000 (10:15 -0500)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 6 Nov 2006 15:15:27 +0000 (10:15 -0500)
--HG--
extra : convert_revision : b60403445bd4e855732fd4e6753068abd90ecc9d

SConstruct

index ce5ab4bb8559279a339e7c18a8e6b4672a0b936d..59d40d5cc4d17f1296e7f733b6774b84e8afaa89 100644 (file)
@@ -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)