[Spice-devel] [PATCH spice-gtk] continuation: fix make distcheck

Marc-André Lureau marcandre.lureau at gmail.com
Tue Nov 26 10:41:41 PST 2013


Since 0508f586,  errno.h is included above #undef _FORTIFY_SOURCE.

But it must be placed above system headers to take effect
---
 gtk/continuation.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gtk/continuation.c b/gtk/continuation.c
index d1249d6..c11d810 100644
--- a/gtk/continuation.c
+++ b/gtk/continuation.c
@@ -18,10 +18,14 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
 #include <config.h>
-#include <errno.h>
-#include <glib.h>
 
+/* keep this above system headers, but bellow config.h */
+#ifdef _FORTIFY_SOURCE
 #undef _FORTIFY_SOURCE
+#endif
+
+#include <errno.h>
+#include <glib.h>
 
 #include "continuation.h"
 
-- 
1.8.4.2



More information about the Spice-devel mailing list