mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-10 13:28:12 -05:00
-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
@ -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
|
||||
|
||||
|
@ -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[])
|
||||
|
Loading…
Reference in New Issue
Block a user