[Spice-devel] [PATCH spice-gtk] gtk/continuation.c: undef _FORTIFY_SOURCE earlier

Hans de Goede hdegoede at redhat.com
Fri Sep 2 06:51:45 PDT 2011


We need to undef _FORTIFY_SOURCE before our first include, so as to
avoid the extra checks it does on longjmp which don't play well with
our coroutine stuff.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 gtk/continuation.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gtk/continuation.c b/gtk/continuation.c
index 9cdd578..fa958b9 100644
--- a/gtk/continuation.c
+++ b/gtk/continuation.c
@@ -17,11 +17,11 @@
  * License along with this library; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
  */
+#undef _FORTIFY_SOURCE
 
 #include <config.h>
 
 #include "continuation.h"
-#undef _FORTIFY_SOURCE
 
 /*
  * va_args to makecontext() must be type 'int', so passing
-- 
1.7.6.1



More information about the Spice-devel mailing list