mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
$NetBSD: patch-ae,v 1.2 2005/01/31 23:58:33 xtraeme Exp $
|
|
|
|
--- hdr/generator.h.orig 2003-05-04 20:50:43.000000000 +0200
|
|
+++ hdr/generator.h 2005-02-01 00:46:44.000000000 +0100
|
|
@@ -21,6 +21,11 @@
|
|
#include <machine/endian.h>
|
|
#define SWAP16(x) bswap_16((x))
|
|
#define SWAP32(x) bswap_32((x))
|
|
+#elif defined(__NetBSD__)
|
|
+ #include <sys/types.h>
|
|
+ #include <machine/endian.h>
|
|
+ #define SWAP16(x) bswap16((x))
|
|
+ #define SWAP32(x) bswap32((x))
|
|
#else
|
|
#define SWAP16(y) (( ((y)>>8) & 0x00ff) | (( ((y)<<8) & 0xff00)))
|
|
#define SWAP32(y) (( ((y)>>24) & 0x000000ff) | \
|
|
@@ -221,11 +226,11 @@
|
|
# define LOG_DEBUG3(x) /* ui_log_debug3 ## x */
|
|
# define LOG_DEBUG2(x) /* ui_log_debug2 ## x */
|
|
# define LOG_DEBUG1(x) /* ui_log_debug1 ## x */
|
|
-# define LOG_USER(x) ui_log_user ## x
|
|
-# define LOG_VERBOSE(x) ui_log_verbose ## x
|
|
-# define LOG_NORMAL(x) ui_log_normal ## x
|
|
-# define LOG_CRITICAL(x) ui_log_critical ## x
|
|
-# define LOG_REQUEST(x) ui_log_request ## x
|
|
+# define LOG_USER(x) ui_log_user x
|
|
+# define LOG_VERBOSE(x) ui_log_verbose x
|
|
+# define LOG_NORMAL(x) ui_log_normal x
|
|
+# define LOG_CRITICAL(x) ui_log_critical x
|
|
+# define LOG_REQUEST(x) ui_log_request x
|
|
#endif
|
|
|
|
typedef struct {
|