CLEANUP: PCS, SVR3, DYNIXPTX, sgi, _SEQUENT_ conditionals
authorRemco Rijnders <remmy@serenity-irc.net>
Mon, 26 Jan 2026 21:15:37 +0000 (21:15 +0000)
committerRemco Rijnders <remmy@serenity-irc.net>
Mon, 26 Jan 2026 21:15:37 +0000 (21:15 +0000)
include/dbuf.h
src/s_bsd.c
src/support.c

index c7b1077ac536d58a7622ae5e8bad2e9bf9638cbd..17acf8adca9e5b383b41de9bdae289a5ee653174 100644 (file)
@@ -43,7 +43,6 @@
 ** implementation of this package without changing the
 ** interface.
 */
-#if !defined(_SEQUENT_)
 typedef struct dbuf
     {
        u_int   length; /* Current number of bytes stored */
@@ -52,16 +51,6 @@ typedef struct dbuf
        /* added by mnystrom@mit.edu: */
        struct  dbufbuf *tail; /* last data buffer, if length > 0 */
     } dbuf;
-#else
-typedef struct dbuf
-    {
-        uint   length; /* Current number of bytes stored */
-        uint   offset; /* Offset to the first byte */
-        struct  dbufbuf *head;  /* First data buffer, if length > 0 */
-       /* added by mnystrom@mit.edu: */
-       struct  dbufbuf *tail; /* last data buffer, if length > 0 */
-    } dbuf;
-#endif
 /*
 ** And this 'dbufbuf' should never be referenced outside the
 ** implementation of 'dbuf'--would be "hidden" if C had such
index ec046495837f3c6dae2046e2320f48b1974f50ae..43fd29dcebda61f17e38a130fa0db2b9c80129ba 100644 (file)
@@ -28,9 +28,7 @@
 #include <sys/ioctl.h>
 #include <utmp.h>
 #include <sys/resource.h>
-#if (!defined(SVR3) || defined(sgi) || defined(_SEQUENT_))
 #include <sys/un.h>
-#endif
 #include <arpa/inet.h>
 #include <stdio.h>
 #include <signal.h>
@@ -336,13 +334,8 @@ void init_sys ()
        }
     }
 #endif
-#if defined(PCS) || defined(DYNIXPTX) || defined(SVR3)
-    char logbuf[BUFSIZ];
-
-    (void) setvbuf (stderr, logbuf, _IOLBF, sizeof (logbuf));
-#else
     (void) setlinebuf (stderr);
-#endif
+
     for (fd = 3; fd < MAXCONNECTIONS; fd++) {
        (void) close (fd);
        local[fd] = NULL;
index f569babe6d3148099c301364b9e459b981d7c69b..5cd31270617748c83e7e59b6f6cac6808a712e74 100644 (file)
  */
 
 #include "config.h"
-#ifdef DYNIXPTX
-#include <sys/timers.h>
-#include <stddef.h>
-#endif
 #include "struct.h"
 #include "common.h"
 #include "sys.h"