Last active
October 24, 2019 05:37
-
-
Save Smithx10/729357da686c9a3abe657df1e4f47363 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@cituscoordinator-3170c7de ~/postgresql-hll]# make | |
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -g -m64 -fPIC -std=c99 -D__EXTENSIONS__ -fPIC -Wall -Wextra -Werror -Wno-unused-parameter -Wno-implicit-fallthrough -Iinclude -I/opt/postgresql/11.1/include -I. -I./ -I/opt/postgresql/11.1/include/server -I/opt/postgresql/11.1/include/internal -c -o src/hll.o src/hll.c | |
src/hll.c: In function 'bitstream_unpack': | |
src/hll.c:597:5: error: implicit declaration of function 'bswap64' [-Werror=implicit-function-declaration] | |
qw = bswap_64(qw); | |
^ | |
src/hll.c: At top level: | |
cc1: error: unrecognized command line option "-Wno-implicit-fallthrough" [-Werror] | |
cc1: all warnings being treated as errors | |
<builtin>: recipe for target 'src/hll.o' failed | |
make: *** [src/hll.o] Error 1 | |
#include <postgres.h> // Needs to be first. | |
#if defined(__APPLE__) | |
#include <libkern/OSByteOrder.h> | |
#define bswap_64 OSSwapInt64 | |
#elif defined(__FreeBSD__) || defined(__DragonFly__) || defined(__sun) | |
#include <endian.h> | |
#define bswap_64 bswap64 | |
#else | |
#include <byteswap.h> | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment