Commit 343af5ee authored by Niels Möller's avatar Niels Möller

Added workaround for broken fnmatch.h installed by apache.

Rev: src/sftp/ChangeLog:1.55
Rev: src/sftp/dc.h:1.5
parent d4a6c066
2004-11-10 Niels Mller <nisse@lysator.liu.se>
* dc.h: Added workaround for broken fnmatch.h installed by apache.
2004-03-20 Niels Mller <nisse@lysator.liu.se>
* configure.ac: Use AC_CONFIG_AUX_DIR([.]).
......
......@@ -35,7 +35,13 @@
#include <glob.h>
#ifdef HAVE_FNMATCH
#include <fnmatch.h>
/* This is an ugly workaround. On Solaris, some version of Apache
installs a file fnmatch.h, which includes ap_config.h, which
contains a declaration of gethostname which is incompatible with
unistd.h. */
# define gethostname gethostname_apache
# include <fnmatch.h>
# undef gethostname
#endif
#include "sftp_bind.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment