Protect definition of _GNU_SOURCE.

I was getting a duplicate definition of this from somewhere, so
getting compiler warnings without this protection.
This commit is contained in:
Carl Worth 2009-10-19 22:34:59 -07:00
parent fedef062ce
commit b6dd413903

View file

@ -23,7 +23,9 @@
#include "notmuch.h" #include "notmuch.h"
#ifndef _GNU_SOURCE
#define _GNU_SOURCE /* For getline */ #define _GNU_SOURCE /* For getline */
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>