Conditional compilation with __FreeBSD__ macro
authorLuca Ferrari <[email protected]>
Thu, 3 Oct 2019 11:48:20 +0000 (13:48 +0200)
committerMark Wong <[email protected]>
Thu, 30 Apr 2020 23:48:31 +0000 (16:48 -0700)
Tested on FreeBSD 12-RELEASE-p9 against PostgreSQL 11.5

src/pg_proctab.c

index 5c79559ad6fd0ada6245a19732293d5e903367f2..28422a5d2c8712d827b29246a6081eeef13fa7c9 100644 (file)
 #include "utils/tuplestore.h"
 #include "storage/fd.h"
 #include "utils/builtins.h"
-#include <sys/vfs.h>
+#ifndef __FreeBSD__
+  #include <sys/vfs.h>
+#else
+  #include <sys/mount.h>
+#endif
 #include <unistd.h>
 #include <sys/stat.h>
 #include <fcntl.h>