aboutsummaryrefslogtreecommitdiffstats
path: root/main/eggdrop/fix-inline-functions.patch
blob: 3856be1f482e7e956c43cbd573c50c1102cdef45 (plain)
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
66
67
68
69
70
Description: fix inline functions to build with clang-3.5. See
  http://clang.llvm.org/compatibility.html#inline
Author: Arthur Marble <arthur@info9.net>

--- a/src/match.c
+++ b/src/match.c
@@ -367,7 +367,7 @@
 /* Inline for cron_match (obviously).
  * Matches a single field of a crontab expression.
  */
-inline int cron_matchfld(char *mask, int match)
+static inline int cron_matchfld(char *mask, int match)
 {
   int skip = 0, f, t;
   char *p, *q;
--- a/src/tclhash.c
+++ b/src/tclhash.c
@@ -109,7 +109,7 @@
   nfree(tl);
 }
 
-inline void garbage_collect_tclhash(void)
+void garbage_collect_tclhash(void)
 {
   tcl_bind_list_t *tl, *tl_next, *tl_prev;
   tcl_bind_mask_t *tm, *tm_next, *tm_prev;
--- a/src/tclhash.h
+++ b/src/tclhash.h
@@ -75,7 +75,7 @@
 
 #ifndef MAKING_MODS
 
-inline void garbage_collect_tclhash(void);
+void garbage_collect_tclhash(void);
 
 void init_bind(void);
 void kill_bind(void);
--- a/src/net.c
+++ b/src/net.c
@@ -564,7 +564,7 @@
 /* Returns a socket number for a listening socket that will accept any
  * connection -- port # is returned in port
  */
-inline int open_listen(int *port)
+int open_listen(int *port)
 {
   return open_address_listen(myip[0] ? getmyip() : INADDR_ANY, port);
 }
--- a/src/proto.h
+++ b/src/proto.h
@@ -271,7 +271,7 @@
 void killsock(int);
 void killtclsock(int);
 int answer(int, char *, unsigned long *, unsigned short *, int);
-inline int open_listen(int *);
+int open_listen(int *);
 int open_address_listen(IP addr, int *);
 int open_telnet(char *, int);
 int open_telnet_dcc(int, char *, char *);
--- a/src/userrec.c
+++ b/src/userrec.c
@@ -77,7 +77,7 @@
 #endif
 }
 
-inline int expmem_mask(struct maskrec *m)
+static inline int expmem_mask(struct maskrec *m)
 {
   int result = 0;