File: standalone_toolchain.patch

package info (click to toggle)
cegui-mk2 0.8.7-1.3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 57,304 kB
  • sloc: cpp: 305,402; python: 1,175; ansic: 788; sh: 608; xml: 191; java: 162; makefile: 39
file content (50 lines) | stat: -rw-r--r-- 1,987 bytes parent folder | download | duplicates (5)
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
diff -rupN orig/sysroot/usr/include/crystax/freebsd/include/mangled-string.h new/sysroot/usr/include/crystax/freebsd/include/mangled-string.h
--- orig/sysroot/usr/include/crystax/freebsd/include/mangled-string.h	2015-08-25 21:46:30.670286841 +0300
+++ new/sysroot/usr/include/crystax/freebsd/include/mangled-string.h	2015-08-25 21:49:25.074987710 +0300
@@ -123,6 +123,8 @@ char	*strtok_r(char *, const char *, cha
 size_t	 strxfrm(char * __restrict, const char * __restrict, size_t);
 #if __BSD_VISIBLE
 
+#if 0
+
 #ifndef _SWAB_DECLARED
 #define _SWAB_DECLARED
 
@@ -134,6 +136,8 @@ typedef	__ssize_t	ssize_t;
 void	 swab(const void * __restrict, void * __restrict, ssize_t);
 #endif /* _SWAB_DECLARED */
 
+#endif
+
 #endif /* __BSD_VISIBLE */
 
 #if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
diff -rupN orig/sysroot/usr/include/crystax/freebsd.h new/sysroot/usr/include/crystax/freebsd.h
--- orig/sysroot/usr/include/crystax/freebsd.h	2015-08-25 21:46:30.670286841 +0300
+++ new/sysroot/usr/include/crystax/freebsd.h	2015-08-25 21:49:25.074987710 +0300
@@ -135,11 +135,11 @@ int __crystax_isthreaded();
 #endif
 
 #ifndef MIN
-#define MIN(a,b) (((a)<(b))?(a):(b))
+//#define MIN(a,b) (((a)<(b))?(a):(b))
 #endif
 
 #ifndef MAX
-#define MAX(a,b) (((a)>(b))?(a):(b))
+//#define MAX(a,b) (((a)>(b))?(a):(b))
 #endif
 
 #ifndef powerof2
diff -rupN orig/sysroot/usr/include/crystax/google/unistd.h new/sysroot/usr/include/crystax/google/unistd.h
--- orig/sysroot/usr/include/crystax/google/unistd.h	2015-08-25 21:46:30.670286841 +0300
+++ new/sysroot/usr/include/crystax/google/unistd.h	2015-08-25 21:49:25.074987710 +0300
@@ -197,6 +197,8 @@ extern int   tcsetpgrp(int fd, pid_t _pi
     } while (_rc == -1 && errno == EINTR); \
     _rc; })
 
+extern void swab(const void* bfrom, void* bto, ssize_t n);
+
 #if defined(__BIONIC_FORTIFY)
 extern ssize_t __read_chk(int, void*, size_t, size_t);
 __errordecl(__read_dest_size_error, "read called with size bigger than destination");