projects
/
pg_proctab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cf8aba
)
Conditional compilation with __FreeBSD__ macro
author
Luca Ferrari
<
[email protected]
>
Thu, 3 Oct 2019 11:48:20 +0000
(13:48 +0200)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/src/pg_proctab.c
b/src/pg_proctab.c
index 5c79559ad6fd0ada6245a19732293d5e903367f2..28422a5d2c8712d827b29246a6081eeef13fa7c9 100644
(file)
--- a/
src/pg_proctab.c
+++ b/
src/pg_proctab.c
@@
-11,7
+11,11
@@
#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>