Ticket #1119: rtems-4.6.99.3_sysctl.diff
File rtems-4.6.99.3_sysctl.diff, 2.7 KB (added by thomas.doerfler, on 12/03/06 at 13:31:13) |
rtems-4.6.99.3_sysctl.diff
|
-
diff -Nur -x configure -x Makefile.in -x autom4te.cache -x .svn -x '*.rej' -x '*.orig' -x '*~' ./rtems-4.6.99.3/cpukit/libcsupport/include/sys/cdefs.h ./rtems-4.6.99.3_patched/cpukit/libcsupport/include/sys/cdefs.h
old
|
new
|
|
116 | 116 | #define __pure |
117 | 117 | #define __pure2 |
118 | 118 | #define __unused |
| 119 | #define __used |
119 | 120 | #define __attribute__(x) |
120 | 121 | #endif |
121 | 122 | #if __GNUC__ == 2 && __GNUC_MINOR__ < 5 |
… |
… |
|
124 | 125 | #define __pure __const |
125 | 126 | #define __pure2 |
126 | 127 | #define __unused |
| 128 | #define __used |
127 | 129 | #endif |
128 | 130 | #if __GNUC__ == 2 && __GNUC_MINOR__ >= 5 && __GNUC_MINOR__ < 7 |
129 | 131 | #define __dead |
… |
… |
|
131 | 133 | #define __pure |
132 | 134 | #define __pure2 __attribute__((__const__)) |
133 | 135 | #define __unused |
| 136 | #define __used |
134 | 137 | #endif |
135 | 138 | #if __GNUC__ == 2 && __GNUC_MINOR__ >= 7 || __GNUC__ >= 3 |
136 | 139 | #define __dead |
… |
… |
|
138 | 141 | #define __pure |
139 | 142 | #define __pure2 __attribute__((__const__)) |
140 | 143 | #define __unused __attribute__((__unused__)) |
| 144 | #define __used __attribute__((__used__)) |
141 | 145 | #endif |
142 | 146 | |
143 | 147 | #ifdef __GNUC__ |
-
diff -Nur -x configure -x Makefile.in -x autom4te.cache -x .svn -x '*.rej' -x '*.orig' -x '*~' ./rtems-4.6.99.3/cpukit/libnetworking/netinet/tcp_var.h ./rtems-4.6.99.3_patched/cpukit/libnetworking/netinet/tcp_var.h
old
|
new
|
|
43 | 43 | * Kernel variables for tcp. |
44 | 44 | */ |
45 | 45 | |
| 46 | #ifdef __BSD_VISIBLE |
46 | 47 | /* |
47 | 48 | * Tcp control block, one per tcp; fields: |
48 | 49 | */ |
… |
… |
|
196 | 197 | #define intotcpcb(ip) ((struct tcpcb *)(ip)->inp_ppcb) |
197 | 198 | #define intotw(ip) ((struct tcptw *)(ip)->inp_ppcb) |
198 | 199 | #define sototcpcb(so) (intotcpcb(sotoinpcb(so))) |
| 200 | #endif /* __BSD_VISIBLE */ |
199 | 201 | |
200 | 202 | /* |
201 | 203 | * The smoothed round-trip time and estimated variance |
-
diff -Nur -x configure -x Makefile.in -x autom4te.cache -x .svn -x '*.rej' -x '*.orig' -x '*~' ./rtems-4.6.99.3/cpukit/libnetworking/sys/linker_set.h ./rtems-4.6.99.3_patched/cpukit/libnetworking/sys/linker_set.h
old
|
new
|
|
42 | 42 | #ifdef __GNUC__ |
43 | 43 | #define __MAKE_SET(set, sym) \ |
44 | 44 | static void const * const __set_##set##_sym_##sym \ |
45 | | __attribute((section("set_" #set))) __unused = &sym |
| 45 | __attribute((section("set_" #set))) __used = &sym |
46 | 46 | #else /* !__GNUC__ */ |
47 | 47 | #ifndef lint |
48 | 48 | #error "This file needs to be compiled by GCC or lint" |
Download in other formats: