Skip to content

Instantly share code, notes, and snippets.

@fire
Last active August 29, 2015 14:24
Show Gist options
  • Save fire/457577daf2ed41d9cf4f to your computer and use it in GitHub Desktop.
Save fire/457577daf2ed41d9cf4f to your computer and use it in GitHub Desktop.
diff --git a/doc-xc/src/sgml/Makefile b/doc-xc/src/sgml/Makefile
index 9c69b15..6ca1cf0 100644
--- a/doc-xc/src/sgml/Makefile
+++ b/doc-xc/src/sgml/Makefile
@@ -367,7 +367,7 @@ clean: clean-man clean-sgml
clean-man:
rm -rf fixedman/ fixed-man-stamp
-.PHONY: clean-sgml:
+.PHONY: clean-sgml
clean-sgml:
rm -rf $(ALLSGML)
diff --git a/src/backend/pgxc/pool/pgxcnode.c b/src/backend/pgxc/pool/pgxcnode.c
index 38b22ee..e02c3f3 100644
--- a/src/backend/pgxc/pool/pgxcnode.c
+++ b/src/backend/pgxc/pool/pgxcnode.c
@@ -21,6 +21,9 @@
*-------------------------------------------------------------------------
*/
+#ifdef __sun
+#include "sys/filio.h"
+#endif
#include "postgres.h"
#include <sys/select.h>
#include <sys/time.h>
diff --git a/src/backend/pgxc/pool/poolcomm.c b/src/backend/pgxc/pool/poolcomm.c
index 4a3c755..3601dd0 100644
--- a/src/backend/pgxc/pool/poolcomm.c
+++ b/src/backend/pgxc/pool/poolcomm.c
@@ -11,6 +11,11 @@
*-------------------------------------------------------------------------
*/
+#ifdef __sun
+#define _XOPEN_SOURCE 500
+#define _XOPEN_SOURCE_EXTENDED 1
+#define uint uint32_t
+#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
@@ -27,7 +32,6 @@
#include "storage/ipc.h"
#include "utils/elog.h"
#include "miscadmin.h"
-
static int pool_recvbuf(PoolPort *port);
static int pool_discardbytes(PoolPort *port, size_t len);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment