-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:
parent
b503cc8303
commit
07b0092736
2 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,6 @@
|
||||||
bin_PROGRAMS = vercmp
|
bin_PROGRAMS = vercmp
|
||||||
|
|
||||||
AM_CFLAGS = \
|
AM_CFLAGS = -I$(top_srcdir)/lib/libalpm
|
||||||
-I$(top_srcdir)/lib/libalpm \
|
|
||||||
-I$(top_srcdir)/src/pacman \
|
|
||||||
$(CFLAGS)
|
|
||||||
|
|
||||||
vercmp_SOURCES = vercmp.c
|
vercmp_SOURCES = vercmp.c
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,9 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#ifndef PATH_MAX
|
||||||
|
#define PATH_MAX 1024
|
||||||
|
#endif
|
||||||
#include "versioncmp.h"
|
#include "versioncmp.h"
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|
Loading…
Add table
Reference in a new issue