summaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/ecpg/preproc/ecpg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/ecpg.c b/src/interfaces/ecpg/preproc/ecpg.c
index 968293aaf65..7d1978c8341 100644
--- a/src/interfaces/ecpg/preproc/ecpg.c
+++ b/src/interfaces/ecpg/preproc/ecpg.c
@@ -4,7 +4,9 @@
#include "postgres.h"
+#ifdef HAVE_GETOPT_H
#include <getopt.h>
+#endif
#include <unistd.h>
extern int optind;
extern char *optarg;