Skip to content

Commit

Permalink
Move the definition of DEVRANDOM for DJGPP from Configure to e_os.h.
Browse files Browse the repository at this point in the history
That should solve the issues with propagating it through the Makefiles.

PR: 1110
  • Loading branch information
levitte committed Jun 18, 2005
1 parent 283c3e2 commit 4bd4677
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Configure
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ my %table=(
"netware-libc-gcc", "i586-netware-gcc:-nostdinc -I/ndk/libc/include -I/ndk/libc/include/winsock -DL_ENDIAN -DNETWARE_LIBC -DOPENSSL_SYSNAME_NETWARE -DTERMIO -O2 -Wall:::::BN_LLONG ${x86_gcc_opts}::",

# DJGPP
"DJGPP", "gcc:-I/dev/env/WATT_ROOT/inc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -Wall -DDEVRANDOM=\"/dev/urandom\\x24\":::MSDOS:-L/dev/env/WATT_ROOT/lib -lwatt:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:",
"DJGPP", "gcc:-I/dev/env/WATT_ROOT/inc -DTERMIOS -DL_ENDIAN -fomit-frame-pointer -O2 -Wall:::MSDOS:-L/dev/env/WATT_ROOT/lib -lwatt:BN_LLONG ${x86_gcc_des} ${x86_gcc_opts}:${x86_out_asm}:",

# Ultrix from Bernhard Simon <simon@zid.tuwien.ac.at>
"ultrix-cc","cc:-std1 -O -Olimit 2500 -DL_ENDIAN::(unknown):::::::",
Expand Down
2 changes: 1 addition & 1 deletion crypto/rand/rand_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ int RAND_poll(void)
int n = 0;
#endif
#ifdef DEVRANDOM
static const char *randomfiles[] = { "DEVRANDOM" };
static const char *randomfiles[] = { DEVRANDOM };
struct stat randomstats[sizeof(randomfiles)/sizeof(randomfiles[0])];
int fd,i;
#endif
Expand Down
1 change: 1 addition & 0 deletions e_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ extern "C" {
# define _setmode setmode
# define _O_TEXT O_TEXT
# define _O_BINARY O_BINARY
# define DEVRANDOM "/dev/urandom\x24"
# endif /* __DJGPP__ */

# ifndef S_IFDIR
Expand Down

0 comments on commit 4bd4677

Please sign in to comment.