diff options
author | lloyd <[email protected]> | 2008-12-02 19:10:34 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-12-02 19:10:34 +0000 |
commit | 2d4cb78af9d2128b728dbb7eb516b0481e38f9ff (patch) | |
tree | 59f7c42eda7d199a754970cc580642800838f9c5 /src/entropy/egd | |
parent | fc8dbd0a75c21d94648d3281e544cf5d7764fedd (diff) |
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 <fcntl.h> 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.
Diffstat (limited to 'src/entropy/egd')
-rw-r--r-- | src/entropy/egd/es_egd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/entropy/egd/es_egd.cpp b/src/entropy/egd/es_egd.cpp index 736d49a6f..84773c215 100644 --- a/src/entropy/egd/es_egd.cpp +++ b/src/entropy/egd/es_egd.cpp @@ -10,9 +10,12 @@ #include <cstring> #include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> +#include <unistd.h> + #include <sys/socket.h> #include <sys/un.h> -#include <unistd.h> #ifndef PF_LOCAL #define PF_LOCAL PF_UNIX |