json-c/json-c-lfs.patch

60 lines
1.8 KiB
Diff
Raw Normal View History

--- a/configure.in 2013-04-01 04:30:51.000000000 +0200
+++ b/configure.in 2014-01-06 13:14:22.551626326 +0100
@@ -1,7 +1,7 @@
AC_PREREQ(2.52)
# Process this file with autoconf to produce a configure script.
-AC_INIT([json-c], 0.11, [json-c@googlegroups.com])
+AC_INIT([json-c], [0.11], [json-c@googlegroups.com])
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
@@ -16,6 +16,10 @@
AM_CONDITIONAL(ENABLE_OLDNAME_COMPAT, [test "x${enable_oldname_compat}" != "xno"])
# Checks for programs.
+AC_PROG_CC_STDC
+AC_USE_SYSTEM_EXTENSIONS
+AC_SYS_LARGEFILE
+
# Checks for libraries.
--- a/linkhash.c 2013-04-01 04:01:09.000000000 +0200
+++ b/linkhash.c 2014-01-06 13:10:22.077585077 +0100
@@ -17,6 +17,7 @@
#include <stddef.h>
#include <limits.h>
+#include "config.h"
#include "linkhash.h"
void lh_abort(const char *msg, ...)
--- a/Makefile.am.inc 2013-04-01 04:01:09.000000000 +0200
+++ b/Makefile.am.inc 2014-01-06 13:12:32.199360740 +0100
@@ -1,2 +1,2 @@
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
+AM_CFLAGS = -Wall -Wextra -Wwrite-strings -Wno-unused-parameter -D_REENTRANT
--- a/tests/test1.c 2013-04-01 04:01:09.000000000 +0200
+++ b/tests/test1.c 2014-01-06 13:10:22.077585077 +0100
@@ -1,3 +1,4 @@
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
--- a/tests/test2.c 2013-04-01 04:01:09.000000000 +0200
+++ b/tests/test2.c 2014-01-06 13:10:22.077585077 +0100
@@ -1,3 +1,4 @@
+#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
--- a/tests/test_printbuf.c 2013-04-01 04:01:09.000000000 +0200
+++ b/tests/test_printbuf.c 2014-01-06 13:10:22.078585055 +0100
@@ -1,3 +1,4 @@
+#include "config.h"
#include <assert.h>
#include <stddef.h>
#include <stdio.h>