Rather than #defining _GNU_SOURCE in our .c files, we can define this
from config.h instead.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
33 files changed:
AC_PROG_INSTALL
AM_INIT_AUTOMAKE
AC_PROG_INSTALL
AM_INIT_AUTOMAKE
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <stdbool.h>
#include <stdlib.h>
#include <stdbool.h>
#include <stdlib.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <string.h>
#include <log/log.h>
#include <string.h>
#include <log/log.h>
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <stdlib.h>
#include <assert.h>
#include <stdlib.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <ctype.h>
#include <assert.h>
#include <ctype.h>
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <string.h>
#include <talloc/talloc.h>
#include <string.h>
#include <talloc/talloc.h>
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <stdbool.h>
#include <assert.h>
#include <stdbool.h>
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <stdlib.h>
#include <assert.h>
#include <stdlib.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <limits.h>
#include <unistd.h>
#include <assert.h>
#include <limits.h>
#include <unistd.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <errno.h>
#include <stdlib.h>
#include <errno.h>
#include <stdlib.h>
#include <types/types.h>
#include <log/log.h>
#include <types/types.h>
#include <log/log.h>
#include "nc-cui.h"
#include "nc-config.h"
#include "nc-widgets.h"
#include "nc-cui.h"
#include "nc-config.h"
#include "nc-widgets.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <stdarg.h>
#include <assert.h>
#include <stdarg.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
#include <log/log.h>
#include <util/util.h>
#include <log/log.h>
#include <util/util.h>
#include "nc-cui.h"
#include "nc-sysinfo.h"
#include "nc-cui.h"
#include "nc-sysinfo.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <linux/input.h> /* This must be included before ncurses.h */
#if defined HAVE_NCURSESW_CURSES_H
#include <linux/input.h> /* This must be included before ncurses.h */
#if defined HAVE_NCURSESW_CURSES_H
#include <log/log.h>
#include <util/util.h>
#include <log/log.h>
#include <util/util.h>
#include "nc-cui.h"
#include "nc-widgets.h"
#include "nc-cui.h"
#include "nc-widgets.h"
* ncurses mouse support
*/
* ncurses mouse support
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <errno.h>
#include <assert.h>
#include <errno.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include <assert.h>
#include <errno.h>
#include <getopt.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <stdio.h>
#include <getopt.h>
#include <stdio.h>
#include <getopt.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <string.h>
#include <linux/input.h>
#include <assert.h>
#include <string.h>
#include <linux/input.h>
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#if defined(HAVE_CONFIG_H)
#include <assert.h>
#include <string.h>
#include <assert.h>
#include <string.h>
#include "config.h"
#endif
#include "config.h"
#endif
#include <assert.h>
#include <err.h>
#include <errno.h>
#include <assert.h>
#include <err.h>
#include <errno.h>