Include config.h in src/libudev/Makefile.am to provide needed #define's

This commit provides needed #define's that provide structures that
are found at configure time.  It also reverts commit

    91ce21b2d7

to avoid redefinitions of _GNU_SOURCE.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Anthony G. Basile 2012-12-01 15:23:06 -05:00
parent 6ea07b48a5
commit 0de7e6af11
5 changed files with 1 additions and 7 deletions

View File

@ -5,6 +5,7 @@ LIBUDEV_REVISION=0
LIBUDEV_AGE=2
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DUDEV_CONF_FILE=\"$(udevconffile)\" \
-DUDEV_HWDB_BIN=\"$(udevhwdbbin)\" \
-I $(top_srcdir)/src/udev

View File

@ -17,8 +17,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>

View File

@ -18,7 +18,6 @@
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#define _GNU_SOURCE
#include <stdarg.h>
#include <stdio.h>

View File

@ -19,8 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#define _GNU_SOURCE
#include <assert.h>
#include <string.h>
#include <unistd.h>

View File

@ -19,8 +19,6 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#define _GNU_SOURCE
#include <assert.h>
#include <string.h>
#include <unistd.h>