#pragma alloca
# else
# ifndef alloca /* predefined by HP cc +Olibcalls */
-extern char *alloca ();
+extern char *(alloca)();
# endif
# endif
# endif
#endif
#endif
-#if !defined( EWOULDBLOCK ) && defined( WSAEWOULDBLOCK )
-#define EWOULDBLOCK WSAEWOULDBLOCK
-#endif
-
/* use _POSIX_VERSION for POSIX.1 code */
#endif /* _AC_ERRNO_H */
# include <libutil.h>
#else
/* use lutil version */
- extern void setproctitle LDAP_P((const char *fmt, ...));
+ extern void (setproctitle) LDAP_P((const char *fmt, ...));
extern int Argc;
extern char **Argv;
#endif
# define tcp_close( s ) closesocket( s );
# define ioctl( s, c, a ) ioctlsocket( (s), (c), (a) )
# define ioctl_t u_long
+
+#define EWOULDBLOCK WSAEWOULDBLOCK
+
#elif MACOS
# define tcp_close( s ) tcpclose( s )
#elif DOS
#else
# ifdef DECL_STRDUP
/* some systems fail to declare strdup */
- extern char *strdup();
+ extern char *(strdup)();
# endif
#endif
#if HAVE_CRYPT_H
# include <crypt.h>
#else
- extern char *crypt();
+ extern char *(crypt)();
#endif
#ifndef HAVE_GETPASS
-extern char* getpass LDAP_P((const char *getpass));
+extern char* (getpass) LDAP_P((const char *getpass));
#endif
/* getopt() defines may be in separate include file */
#endif
#ifndef HAVE_TEMPNAM
- extern char *tempnam(const char *tmpdir, const char *prefix);
+ extern char *(tempnam)(const char *tmpdir, const char *prefix);
#endif
#ifndef HAVE_MKTEMP
- extern char *mktemp(char *);
+ extern char *(mktemp)(char *);
#endif
/* use lutil file locking */