jrgemignani commented on code in PR #2286:
URL: https://github.com/apache/age/pull/2286#discussion_r2669393428


##########
Makefile:
##########
@@ -138,6 +138,13 @@ PG_CONFIG ?= pg_config
 PGXS := $(shell $(PG_CONFIG) --pgxs)
 include $(PGXS)
 
+# 32-bit platform support: detect SIZEOF_DATUM (override with make 
SIZEOF_DATUM=4)
+SIZEOF_DATUM ?= $(shell printf '%s\n%s\n' '\#include "pg_config.h"' 
'SIZEOF_VOID_P' | \
+    $(CC) -I$(shell $(PG_CONFIG) --includedir-server) -E -x c - 2>/dev/null | 
grep -E '^[0-9]+$$' | tail -1)
+ifeq ($(SIZEOF_DATUM),)
+  SIZEOF_DATUM := 8

Review Comment:
   @jpabbuehl Same



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to