components/gnome/file-roller/patches/01-avoid_XOPEN_SOURCE.patch
author Niveditha Rau <Niveditha.Rau@Oracle.COM>
Mon, 24 Oct 2016 23:43:46 -0700
changeset 7210 66f170dce8c5
permissions -rw-r--r--
23245291 Move file-roller to Userland and update to 3.16.4 PSARC/2016/375 GNOME apps and icons

Avoid triggering Solaris header bug 23506995 when an old XPG version is
requested in a C99 or later mode of the C compiler.

Need to figure out how best to submit upstream.

--- file-roller-3.16.4/src/fr-command-unarchiver.c
+++ file-roller-3.16.4/src/fr-command-unarchiver.c
@@ -20,8 +20,10 @@
  */
 
 #include <config.h>
+#ifndef __sun
 #define _XOPEN_SOURCE       /* See feature_test_macros(7) */
 #define _XOPEN_SOURCE_EXTENDED 1  /* for strptime */
+#endif
 #include <time.h>
 #include <stdio.h>
 #include <stdlib.h>