From 68938c4770abb7bb812d1104863b6f5f5c53e7d6 Mon Sep 17 00:00:00 2001
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu, 22 Jul 2004 01:41:24 +0000
Subject: [PATCH] Add missing <getopt.h>, per Dann Corbit.

---
 src/timezone/zic.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/timezone/zic.c b/src/timezone/zic.c
index 90fe89ea080..ac52a43fec6 100644
--- a/src/timezone/zic.c
+++ b/src/timezone/zic.c
@@ -3,13 +3,16 @@
  * 1996-06-05 by Arthur David Olson (arthur_david_olson@nih.gov).
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/timezone/zic.c,v 1.8 2004/06/03 02:08:07 tgl Exp $
+ *	  $PostgreSQL: pgsql/src/timezone/zic.c,v 1.9 2004/07/22 01:41:24 tgl Exp $
  */
 
 #include "postgres.h"
 
-#include <locale.h>
+#ifdef HAVE_GETOPT_H
+#include <getopt.h>
+#endif
 #include <limits.h>
+#include <locale.h>
 
 #include "pgtz.h"
 #include "private.h"
-- 
GitLab