aboutsummaryrefslogtreecommitdiff
path: root/.builds/openbsd.diff
blob: db40426bdc9f9b0609258b0be5fb1d064fb3d0ed (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
--- stdarg.h.orig	Sat Sep  5 19:23:19 2020
+++ stdarg.h	Sat Sep  5 19:23:51 2020
@@ -20,8 +20,6 @@
 
 #include <sys/cdefs.h>
 
-#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__PCC__)
-
 /* Define __gnuc_va_list.  */
 
 #ifndef __GNUC_VA_LIST
@@ -39,10 +37,6 @@
 #define __va_copy(dst, src)	__builtin_va_copy((dst),(src))
 
 typedef __gnuc_va_list va_list;
-
-#else
-#error "unsupported compiler"
-#endif
 
 #if __ISO_C_VISIBLE >= 1999
 #define	va_copy(dst, src)	__va_copy((dst), (src))
--- machine/endian.h.orig	Sat Sep  5 19:21:50 2020
+++ machine/endian.h	Sat Sep  5 19:22:51 2020
@@ -31,6 +31,8 @@
 #include <sys/_types.h>
 #endif
 
+#ifdef __GNUC__
+
 static __inline __uint16_t
 __swap16md(__uint16_t _x)
 {
@@ -54,6 +56,8 @@
 
 /* Tell sys/endian.h we have MD variants of the swap macros.  */
 #define __HAVE_MD_SWAP
+
+#endif
 
 #define _BYTE_ORDER _LITTLE_ENDIAN