1999-09-07 21:33:38 +00:00
|
|
|
--- nfbpatch.c.orig Mon Mar 25 07:23:16 1996
|
|
|
|
+++ nfbpatch.c Wed Sep 8 05:58:22 1999
|
1998-08-30 02:32:23 +00:00
|
|
|
@@ -31,9 +31,11 @@
|
|
|
|
#include <unistd.h>
|
|
|
|
|
1999-09-07 21:33:38 +00:00
|
|
|
#define CASE_SHIFT 32 /* diference between upper and lower case */
|
1998-08-30 02:32:23 +00:00
|
|
|
+#ifndef freebsd
|
1999-09-07 21:33:38 +00:00
|
|
|
#define SYSVR4 /* use with gcc and solaris 2.1 see getpgrp. Also defines
|
|
|
|
* usleep. Wasn't able to link with /usr/ucblib/libucb.a
|
|
|
|
* Really no need for delay anyway */
|
1998-08-30 02:32:23 +00:00
|
|
|
+#endif
|
|
|
|
#ifdef ultrix
|
|
|
|
#define ECHOCTL TCTLECH
|
|
|
|
#endif
|
|
|
|
@@ -97,7 +99,7 @@
|
|
|
|
int i;
|
|
|
|
|
|
|
|
i = tcgetpgrp(0);/* Use stdin as the file descriptor */
|
|
|
|
-#ifdef SYSVR4
|
|
|
|
+#if defined(SYSVR4) || defined(freebsd)
|
|
|
|
if (i == getpgrp())
|
|
|
|
return (1);
|
|
|
|
#else
|