From: Carl Worth <cworth@cworth.org>
Date: Tue, 20 Oct 2009 05:34:59 +0000 (-0700)
Subject: Protect definition of _GNU_SOURCE.
X-Git-Tag: 0.1~823
X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b6dd413903370bd9b4f50428a32276f1f8457937;p=obsolete%2Fnotmuch-old

Protect definition of _GNU_SOURCE.

I was getting a duplicate definition of this from somewhere, so
getting compiler warnings without this protection.
---

diff --git a/notmuch-private.h b/notmuch-private.h
index 449aff71..a8ec8ebe 100644
--- a/notmuch-private.h
+++ b/notmuch-private.h
@@ -23,7 +23,9 @@
 
 #include "notmuch.h"
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE /* For getline */
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>