diff options
author | ramiro%netscape.com <devnull@localhost> | 1998-10-01 21:36:17 +0000 |
---|---|---|
committer | ramiro%netscape.com <devnull@localhost> | 1998-10-01 21:36:17 +0000 |
commit | fa4a29bba4b52a2892c866605e1a4e7cdca9b917 (patch) | |
tree | fb4b33c9374b0e0603a90b0a2aa94a9e6f3c1bdc /dbm/src | |
parent | 138bbc157e92e35b5ee80faa02e72c4b18e90306 (diff) | |
download | nss-hg-fa4a29bba4b52a2892c866605e1a4e7cdca9b917.tar.gz |
fraioli@dg-rtp.dg.com (Marc J. Fraioli) writes the following:
I used the SYS_BYTEORDER_H macro to decide whether or not to
include <sys/byteorder.h>. This seems appropriate, but I'm happy to
have the feature test changed to DGUX if this breaks some other
platform.
ramiro@netscape.com writes the follwing:
There probably is a proper way to do this in a completely XP way,
but dbm has been hacked so much that such a change is likely to
break a random platform out there. Im protecting this code with
#if defined(DGUX) to be really safe.
Diffstat (limited to 'dbm/src')
-rw-r--r-- | dbm/src/h_page.c | 21 | ||||
-rw-r--r-- | dbm/src/hash.c | 21 |
2 files changed, 42 insertions, 0 deletions
diff --git a/dbm/src/h_page.c b/dbm/src/h_page.c index fbbf6d88d..ae77030fa 100644 --- a/dbm/src/h_page.c +++ b/dbm/src/h_page.c @@ -81,6 +81,27 @@ static char sccsid[] = "@(#)hash_page.c 8.7 (Berkeley) 8/16/94"; #include <assert.h> +/* + * fraioli@dg-rtp.dg.com (Marc J. Fraioli) writes the following: + * + * I used the SYS_BYTEORDER_H macro to decide whether or not to + * include <sys/byteorder.h>. This seems appropriate, but I'm happy to + * have the feature test changed to DGUX if this breaks some other + * platform. + * + * ramiro@netscape.com writes the follwing: + * + * There probably is a proper way to do this in a completely XP way, + * but dbm has been hacked so much that such a change is likely to + * break a random platform out there. Im protecting this code with + * #if defined(DGUX) to be really safe. + */ +#if defined(DGUX) +#if defined(SYS_BYTEORDER_H) +#include <sys/byteorder.h> +#endif +#endif + #include "mcom_db.h" #include "hash.h" #include "page.h" diff --git a/dbm/src/hash.c b/dbm/src/hash.c index 625a1644b..d440d914d 100644 --- a/dbm/src/hash.c +++ b/dbm/src/hash.c @@ -66,6 +66,27 @@ static char sccsid[] = "@(#)hash.c 8.9 (Berkeley) 6/16/94"; #include <assert.h> #endif +/* + * fraioli@dg-rtp.dg.com (Marc J. Fraioli) writes the following: + * + * I used the SYS_BYTEORDER_H macro to decide whether or not to + * include <sys/byteorder.h>. This seems appropriate, but I'm happy to + * have the feature test changed to DGUX if this breaks some other + * platform. + * + * ramiro@netscape.com writes the follwing: + * + * There probably is a proper way to do this in a completely XP way, + * but dbm has been hacked so much that such a change is likely to + * break a random platform out there. Im protecting this code with + * #if defined(DGUX) to be really safe. + */ +#if defined(DGUX) +#if defined(SYS_BYTEORDER_H) +#include <sys/byteorder.h> +#endif +#endif + #include "mcom_db.h" #include "hash.h" #include "page.h" |