Skip to content

fix build time_t for 32-bits#78

Open
andypost wants to merge 2 commits intopgpool:masterfrom
andypost:63-fix-32-bits-build
Open

fix build time_t for 32-bits#78
andypost wants to merge 2 commits intopgpool:masterfrom
andypost:63-fix-32-bits-build

Conversation

@andypost
Copy link

also added fix from #63 (comment)

@andypost andypost force-pushed the 63-fix-32-bits-build branch from c167636 to 2b897a4 Compare October 27, 2024 13:39
#include "pool_parser.h"
#include "stringinfo.h"
#include "utils/palloc.h"
#include "postgresql/16/server/postgres_fe.h"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it brings warning and is not good approach

gcc -DHAVE_CONFIG_H -I. -I../../src/include  -D_GNU_SOURCE -I ../../src/include/parser -I /usr/include/postgresql   -Os -fstack-clash-protection -Wformat -Werror=format-security -Wall -Wmissing-prototypes -Wmissing-declarations -Wno-format-truncation -Wno-stringop-truncation -fno-strict-aliasing -c -o snprintf.o snprintf.c
snprintf.c:79:9: warning: "MemSet" redefined
   79 | #define MemSet(start, val, len) \
      |         ^~~~~~
In file included from /usr/include/postgresql/16/server/postgres_fe.h:25,
                 from snprintf.c:50:
/usr/include/postgresql/16/server/c.h:1004:9: note: this is the location of the previous definition
 1004 | #define MemSet(start, val, len) \
      |         ^~~~~~
rm -f libsql-parser.a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant