diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-03-25 08:25:47 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-03-25 08:25:47 +0000 |
commit | ea2fa32eff17b8ac2b51c0d4dafe43a9f2c5d014 (patch) | |
tree | 616677d70b527c2cf89481450f29c2fb26ccdbf6 /src/backend/libpq/pqcomprim.c | |
parent | fcd65952fd2dc6ea6b656586cf76db81ac61899a (diff) |
Rather than make this a Linux test, we should just test for the existence
of endian.h. I figure that if it exists it's pretty sure that it has
the byte order information and we may catch some other ports without
any further testing.
From: "D'Arcy J.M. Cain" <darcy@druid.net>
Diffstat (limited to 'src/backend/libpq/pqcomprim.c')
-rw-r--r-- | src/backend/libpq/pqcomprim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/libpq/pqcomprim.c b/src/backend/libpq/pqcomprim.c index ba1bfe365f0..ee3586fa606 100644 --- a/src/backend/libpq/pqcomprim.c +++ b/src/backend/libpq/pqcomprim.c @@ -1,6 +1,10 @@ #include <stdlib.h> #include <stdio.h> +#ifdef HAVE_ENDIAN_H +# include <endian.h> +#endif + #include "postgres.h" #include "libpq/pqcomm.h" |