$NetBSD: patch-ah,v 1.4 2001/09/10 08:23:19 skrll Exp $

--- kdm/daemon.c.orig	Wed Sep 30 22:19:53 1998
+++ kdm/daemon.c
@@ -38,6 +38,10 @@
 
 #include <X11/Xos.h>
 
+#ifdef __SVR4
+#define SVR4 __SVR4
+#endif
+
 /*
 #if defined(SVR4) || defined(USG)
 #include <termios.h>
@@ -135,14 +139,12 @@
     /*
      * Close standard file descriptors and get rid of controlling tty
      */
-
-/*
 #if defined(SYSV) || defined(SVR4)
     setpgrp ();
 #else
     setpgrp (0, getpid());
 #endif
-*/
+
     setpgid( 0, getpid()); /* This should be POSIX /stefh */
     close (0); 
     close (1);
