seed.c: incredibly enough seed.c can fail to compile on Solaris with certain
authorAndy Polyakov <appro@openssl.org>
Sun, 26 Feb 2012 21:52:43 +0000 (21:52 +0000)
committerAndy Polyakov <appro@openssl.org>
Sun, 26 Feb 2012 21:52:43 +0000 (21:52 +0000)
flags, because SS is defined after inclusion of <stdlib.h>, in <sys/regset.h>

crypto/seed/seed.c

index 2bc384a..2eb3a78 100644 (file)
 #include <openssl/seed.h>
 #include "seed_locl.h"
 
+#ifdef SS      /* can get defined on Solaris by inclusion of <stdlib.h> */
+#undef SS
+#endif
+
 static const seed_word SS[4][256] = {  {
        0x2989a1a8, 0x05858184, 0x16c6d2d4, 0x13c3d3d0, 0x14445054, 0x1d0d111c, 0x2c8ca0ac, 0x25052124,
        0x1d4d515c, 0x03434340, 0x18081018, 0x1e0e121c, 0x11415150, 0x3cccf0fc, 0x0acac2c8, 0x23436360,