From 2d4cb78af9d2128b728dbb7eb516b0481e38f9ff Mon Sep 17 00:00:00 2001 From: lloyd Date: Tue, 2 Dec 2008 19:10:34 +0000 Subject: Rickard Bondesson reported on botan-devel about some problems building on Solaris 10 with GCC 3.4.3. First, remove the definition of _XOPEN_SOURCE_EXTENDED=1 in mmap_mem.cpp and unix_cmd.cpp, because apparently on Solaris defining this macro breaks C++ compilation entirely with GCC: http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6395191 In es_egd.cpp and es_dev.cpp, include to get the declaration of open(), which is apparently where open(2) lives on Solaris - this matches the include the *BSD man pages for open(2) show, though AFAIK the BSDs all compiled fine without it (probably due to greater efforts to be source-compatible with Linux systems by *BSD developers). I have not been able to test these changes personally on Solaris but Rickard reports that with these changes everything compiles OK. Update lib version to 1.8.0-pre. ZOMG. Finally. --- src/entropy/unix_procs/unix_cmd.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/entropy/unix_procs') diff --git a/src/entropy/unix_procs/unix_cmd.cpp b/src/entropy/unix_procs/unix_cmd.cpp index 79cce7da4..4c7f674db 100644 --- a/src/entropy/unix_procs/unix_cmd.cpp +++ b/src/entropy/unix_procs/unix_cmd.cpp @@ -3,14 +3,6 @@ * (C) 1999-2007 Jack Lloyd * *************************************************/ -#ifndef _XOPEN_SOURCE - #define _XOPEN_SOURCE 500 -#endif - -#ifndef _XOPEN_SOURCE_EXTENDED - #define _XOPEN_SOURCE_EXTENDED 1 -#endif - #include #include #include -- cgit v1.2.3