-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing include header, fix FreeBSD support. (#34)
Some of our C files are missing headers and compile then fails on FreeBSD. I'm not sure how compile passes in other systems / compilers, and the fix seems relevant and general enough for all platforms. Also, use `pg_config --libs` to get the right set of libraries needed on the current platform, rather than hardcoding -lpgport -lpgcommon. Of course we still need to add -lpq to the list. Fixes #32.
- Loading branch information
Showing
4 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
* | ||
*/ | ||
|
||
#include <arpa/inet.h> | ||
#include <errno.h> | ||
#include <inttypes.h> | ||
#include <getopt.h> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters