DEFLIBS="-lz"
OSNAME="OSF/1 or Digital Unix"
;;
- *SunOS*4.*)
- DEFCFLAGS="$DEFOPT"
- DEFLIBS="-lz"
- OSNAME="SunOS 4.x"
- LOCALD=undef
- ;;
- *SunOS*5.*)
- DEFCFLAGS="$DEFOPT -DSOL20"
- DEFLIBS="-lsocket -lnsl -lresolv -lz"
- OSNAME="Solaris 2.x (or SunOS 5.x)"
- LOCALD=undef
- ;;
*Darwin*)
DEFCFLAGS="$DEFOPT"
DEFLIBS="-lz"
#define VOIDSIG void /* whether signal() returns int of void */
#endif
-#ifdef SOL20
-#define OPT_TYPE char /* opt type for get/setsockopt */
-#else
-#define OPT_TYPE void
-#endif
+#define OPT_TYPE void /* opt type for get/setsockopt */
#ifdef __osf__
# define OSF
/*
* Different name on NetBSD, FreeBSD, BSDI, OpenBSD and Linux
*/
-#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__OpenBSD__) || defined(__linux__) || defined(SOL20) || defined(__Darwin__)
+#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__OpenBSD__) || defined(__linux__) || defined(__Darwin__)
#define dn_skipname __dn_skipname
#endif
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* -- Jto -- 20 Jun 1990
- * extern void free() fixed as suggested by
- * gruner@informatik.tu-muenchen.de
- */
-
-/* -- Jto -- 10 May 1990
- * Changed memcpy into bcopy and removed the declaration of memset
- * because it was unnecessary.
- * Added the #includes for "struct.h" and "sys.h" to get bcopy/memcpy
- * work
- */
-
/*
** For documentation of the *global* functions implemented here,
** see the header file (dbuf.h).
return NULL;
}
#if defined(VALLOC) && !defined(DEBUGMODE)
-#if defined(SOL20) || defined(_SC_PAGESIZE)
+#if defined(_SC_PAGESIZE)
num = sysconf (_SC_PAGESIZE) / sizeof (dbufbuf);
#else
num = getpagesize () / sizeof (dbufbuf);
(fd, SOL_SOCKET, SO_REUSEADDR, (OPT_TYPE *) & opt, sizeof (opt)) < 0)
report_error ("setsockopt(SO_REUSEADDR) %s:%s", cptr);
#endif
-#if defined(SO_DEBUG) && defined(DEBUGMODE) && 0
-/* Solaris with SO_DEBUG writes to syslog by default */
-#if !defined(SOL20) || defined(USE_SYSLOG)
- opt = 1;
- if (setsockopt
- (fd, SOL_SOCKET, SO_DEBUG, (OPT_TYPE *) & opt, sizeof (opt))
- < 0)
- report_error ("setsockopt(SO_DEBUG) %s:%s", cptr);
-#endif /* SOL20 */
-#endif
#if defined(SO_USELOOPBACK)
opt = 1;
if (setsockopt
#include <sys/param.h>
#endif
#ifdef GETRUSAGE_2
-#ifdef SOL20
-#include <sys/time.h>
-#ifdef RUSAGEH
-#include <sys/rusage.h>
-#endif
-#endif
#include <sys/resource.h>
#else
#ifdef TIMES_2