Package: QRQ Severity: important Version: 0.3.1-1 Tags: patch User: debian-h...@lists.debian.org Usertags: hurd X-Debbugs-CC: debian-h...@lists.debian.org
Error recorded in failed_packages.txt PATH_MAX build error, replaced with _POSIX_PATH_MAX Noob here, please assist on items i did wrong.
--- qrq.c_backup 2015-04-07 14:55:10.000000000 -0400 +++ qrq.c 2015-04-07 14:56:02.000000000 -0400 @@ -31,7 +31,7 @@ #include <libgen.h> /* basename */ #include <ctype.h> #include <time.h> -#include <limits.h> /* PATH_MAX */ +#include <limits.h> /* _POSIX_PATH_MAX */ #include <dirent.h> #include <math.h> #include <fcntl.h> @@ -86,10 +86,10 @@ /* List of available callbase files. Probably no need to do dynamic memory allocation for that list.... */ -static char cblist[100][PATH_MAX]; +static char cblist[100][_POSIX_PATH_MAX]; static char mycall[15]="DJ1YFK"; /* mycall. will be read from qrqrc */ -static char dspdevice[PATH_MAX]="/dev/dsp"; /* will also be read from qrqrc */ +static char dspdevice[_POSIX_PATH_MAX]="/dev/dsp"; /* will also be read from qrqrc */ static int score = 0; /* qrq score */ static int sending_complete; /* global lock for "enter" while sending */ static int callnr = 0; /* nr of actual call in attempt */ @@ -157,11 +157,11 @@ pthread_attr_t cwattr; #endif -char rcfilename[PATH_MAX]=""; /* filename and path to qrqrc */ -char tlfilename[PATH_MAX]=""; /* filename and path to toplist */ -char cbfilename[PATH_MAX]=""; /* filename and path to callbase */ +char rcfilename[_POSIX_PATH_MAX]=""; /* filename and path to qrqrc */ +char tlfilename[_POSIX_PATH_MAX]=""; /* filename and path to toplist */ +char cbfilename[_POSIX_PATH_MAX]=""; /* filename and path to callbase */ -char destdir[PATH_MAX]=""; +char destdir[_POSIX_PATH_MAX]=""; /* create windows */ @@ -177,7 +177,7 @@ /* if built as osx bundle set DESTDIR to Resources dir of bundle */ #ifdef OSX_BUNDLE - char tempdir[PATH_MAX]=""; + char tempdir[_POSIX_PATH_MAX]=""; char* p_slash = strrchr(argv[0], '/'); strncpy(tempdir, argv[0], p_slash - argv[0]); p_slash = strrchr(tempdir, '/'); @@ -1969,8 +1969,8 @@ void find_callbases () { DIR *dir; struct dirent *dp; - char tmp[PATH_MAX]; - char path[3][PATH_MAX]; + char tmp[_POSIX_PATH_MAX]; + char path[3][_POSIX_PATH_MAX]; int i=0,j=0,k=0; #ifndef WIN32