comms/qico: unbreak on 12.0 after base r308264

In file included from gmtoff.c:7:
In file included from ./headers.h:51:
./replace.h:14:14: error: expected identifier or '('
extern char *basename (const char *filename);
             ^
/usr/include/libgen.h:60:21: note: expanded from macro 'basename'
 #define basename(x)     __generic(x, const char *, __old_basename, basename)(x)
                         ^
/usr/include/sys/cdefs.h:337:2: note: expanded from macro '__generic'
        _Generic(expr, t: yes, default: no)
        ^

Reported by:	pkg-fallout
This commit is contained in:
Jan Beich
2017-02-01 20:21:47 +00:00
parent f3dc33ecc2
commit a3b3a03eb8

View File

@@ -0,0 +1,10 @@
--- configure.orig 2003-04-05 13:33:18 UTC
+++ configure
@@ -8343,6 +8343,7 @@ cat >>conftest.$ac_ext <<_ACEOF
#endif
static char *fl = "/usr/local/bin/some.file";
int main(int argc, char **argv) {
+ fl = strdup(fl);
char *b = basename(fl); return ((*b != '/')?0:1);
}