Only include libgen.h if we have a basename as well.
authorDaniel Stenberg <daniel@haxx.se>
Tue, 5 Oct 2004 06:55:09 +0000 (06:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 5 Oct 2004 06:55:09 +0000 (06:55 +0000)
commit121197bc8795480c7fea0619cc9f6ce38eb14913
treeef17cefa637069f9cd3cceae03512349c8262792
parentd5dd8e0fdc780777998c068dee4fd4ce3e5dffe0
Only include libgen.h if we have a basename as well.

Mainly meant to deal with the IRIX case which seems to requrie a "-lgen" lib
to find the basename function and thus without the gen lib, it finds the
header but not the function and our replacement function has a prototype
that doesn't match the IRIX one.

A different approach would be to make configure detect and use -lgen for the
systems that require it.
lib/formdata.c