bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] tar and gcc-4.3


From: Matthias Koenig
Subject: [Bug-tar] tar and gcc-4.3
Date: Tue, 25 Sep 2007 13:59:27 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

Hi,

the patch below seems to be needed to get tar compiled with
gcc-4.3.

Matthias

--- lib/argp.h.orig     2007-09-25 11:04:18.000000000 +0200
+++ lib/argp.h  2007-09-25 11:06:24.000000000 +0200
@@ -580,7 +580,11 @@
 # endif
 
 # ifndef ARGP_EI
-#  define ARGP_EI extern __inline__
+#  if defined __GNUC_STDC_INLINE__
+#    define ARGP_EI extern __inline__ __attribute__((__gnu_inline__))
+#  else
+#    define ARGP_EI extern __inline__
+#  endif
 # endif
 
 ARGP_EI void
--- lib/argp-fmtstream.h.orig   2007-09-25 11:06:49.000000000 +0200
+++ lib/argp-fmtstream.h        2007-09-25 11:07:35.000000000 +0200
@@ -198,8 +198,12 @@
 #endif
 
 #ifndef ARGP_FS_EI
+#ifdef __GNUC_STDC_INLINE__
+#define ARGP_FS_EI extern inline __attribute__((__gnu_inline__))
+#else
 #define ARGP_FS_EI extern inline
 #endif
+#endif
 
 ARGP_FS_EI size_t
 __argp_fmtstream_write (argp_fmtstream_t __fs,





reply via email to

[Prev in Thread] Current Thread [Next in Thread]