-std=c99 seems to undefine PATH_MAX in this case. I don't care enough to fix it

at the moment, so this workaround works.
This commit is contained in:
Aaron Griffin 2006-11-23 02:36:26 +00:00
parent b503cc8303
commit 07b0092736
2 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,6 @@
bin_PROGRAMS = vercmp
AM_CFLAGS = \
-I$(top_srcdir)/lib/libalpm \
-I$(top_srcdir)/src/pacman \
$(CFLAGS)
AM_CFLAGS = -I$(top_srcdir)/lib/libalpm
vercmp_SOURCES = vercmp.c

View File

@ -24,6 +24,9 @@
#include <errno.h>
#include <unistd.h>
#include <limits.h>
#ifndef PATH_MAX
#define PATH_MAX 1024
#endif
#include "versioncmp.h"
int main(int argc, char *argv[])