blob: fcf867983466e74b26b0357e8750541dd2e55a32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
echo 'Creating brew-patch.diff'
cat << EOF >> brew-patch.diff
--- orig/rlog/common.h.in 2008-06-14 20:10:13.000000000 -0700
+++ new/rlog/common.h.in 2009-05-18 16:05:04.000000000 -0700
@@ -52,7 +52,12 @@
# define PRINTF(FMT,X) __attribute__ (( __format__ ( __printf__, FMT, X)))
# define HAVE_PRINTF_ATTR 1
+
+#ifdef __APPLE__
+# define RLOG_SECTION __attribute__ (( section("__DATA, RLOG_DATA") ))
+#else
# define RLOG_SECTION __attribute__ (( section("RLOG_DATA") ))
+#endif
#if __GNUC__ >= 3
# define expect(foo, bar) __builtin_expect((foo),bar)
EOF
|