File: 218-support-kfreebsd.dpatch

package info (click to toggle)
cernlib 20061220%2Bdfsg3-4.3%2Bdeb9u2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,872 kB
  • sloc: sh: 9,517; makefile: 187
file content (65 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#! /bin/sh /usr/share/dpatch/dpatch-run
## 218-support-kfreebsd.dpatch by Lifeng Sun <lifongsun@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.

@DPATCH@
--- a/src/packlib/kuip/code_motif/kmfile.c
+++ b/src/packlib/kuip/code_motif/kmfile.c
@@ -23,6 +23,9 @@
 #ifdef CERNLIB_MACOSX
 #include <regex.h>
 #endif
+#ifdef __FreeBSD_kernel__
+#include <dirent.h>
+#endif
 
 static char **ftype_list = NULL;
 static char **class_list = NULL;
--- a/src/packlib/kernlib/kernbit/z268/systems.c
+++ b/src/packlib/kernlib/kernbit/z268/systems.c
@@ -203,7 +203,8 @@
 || defined(_IBMR2) \
 || defined(__convexc__) \
 || defined(_OSK) \
-|| defined(__linux) || defined(__FreeBSD__) || defined(__DARWIN__)
+|| defined(__linux) || defined(__FreeBSD__) || defined(__DARWIN__) \
+|| defined(__FreeBSD_kernel__)
 
   void systems_( command, buf, buflen, l, chars, rc, ovflw )
 
--- a/src/packlib/cspack/sysreq/log.c
+++ b/src/packlib/cspack/sysreq/log.c
@@ -84,7 +84,8 @@
 static int pid;                 /* process identifier                   */
 static int logfd ;              /* logging file descriptor              */
 #if !defined(SOLARIS) && !defined(linux) && !defined(_AIX) \
-  && !defined(IRIX5) && !defined(apollo) && !defined(__DARWIN__)
+  && !defined(IRIX5) && !defined(apollo) && !defined(__DARWIN__) \
+  && !defined(__FreeBSD_kernel__)
 extern int syslog();
 #endif /* !SOLARIS && !IRIX5 && !apollo && !linux && !AIX */
 extern char *getenv();
--- a/src/packlib/cspack/tcpaw/tcpaw.c
+++ b/src/packlib/cspack/tcpaw/tcpaw.c
@@ -2562,6 +2562,11 @@
         return (ID);
 }
  
+#if defined(__FreeBSD_kernel__)
+#define COMPAT_43TTY
+#include <sys/ioctl_compat.h>
+#endif
+
 #if !defined(IBM) && !defined(_WIN32)
 /* I provide "getpass" myself as standard version truncates to 8 characters */
 #include <sys/ioctl.h>
@@ -2669,7 +2674,7 @@
  
         char **ahost;
         int rport;
-        char *name, *pass, *cmd;
+        const char *name, *pass, *cmd;
         int *fd2p;
 #endif
 {