* lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
---
 ChangeLog      | 5 +++++
 lib/argp-pin.c | 7 +++++++
 2 files changed, 12 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 9e4337a..bb5e75c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-14  Paul Eggert  <[email protected]>
+
+       argp: port to PGI 16.10
+       * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
+
 2017-02-13  Darshit Shah  <[email protected]>
 
        unicase: Update function protoype to match definition.
diff --git a/lib/argp-pin.c b/lib/argp-pin.c
index 261191f..64d831d 100644
--- a/lib/argp-pin.c
+++ b/lib/argp-pin.c
@@ -24,3 +24,10 @@ char *program_invocation_short_name = 0;
 #ifndef HAVE_PROGRAM_INVOCATION_NAME
 char *program_invocation_name = 0;
 #endif
+
+#if (defined HAVE_PROGRAM_INVOCATION_SHORT_NAME \
+     && defined HAVE_PROGRAM_INVOCATION_NAME)
+/* This declaration is solely to ensure that after preprocessing
+   this file is never empty.  */
+typedef int dummy;
+#endif
-- 
2.9.3


Reply via email to