freebsd-ports/devel/omniORB/files/patch-undef_minor_macro
Sergey Matveychuk 77f639ecfc - Unbreak on -CURRENT (minor() macro problem)
- Respect CFLAGS
2005-11-07 20:10:38 +00:00

30 lines
860 B
Text

--- src/appl/utils/catior/catior.cc.orig Mon Nov 7 22:38:04 2005
+++ src/appl/utils/catior/catior.cc Mon Nov 7 22:38:55 2005
@@ -42,6 +42,12 @@
# include <unistd.h>
#endif
+#ifdef minor
+ // Digital Unix 3.2, and may be others as well, defines minor() as
+ // a macro in its sys/types.h. Get rid of it!
+#undef minor
+#endif
+
#ifndef Swap16
#define Swap16(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
#else
--- src/appl/utils/convertior/convertior.cc.orig Mon Nov 7 22:39:11 2005
+++ src/appl/utils/convertior/convertior.cc Mon Nov 7 22:39:28 2005
@@ -40,6 +40,12 @@
# include <unistd.h>
#endif
+#ifdef minor
+ // Digital Unix 3.2, and may be others as well, defines minor() as
+ // a macro in its sys/types.h. Get rid of it!
+#undef minor
+#endif
+
#ifndef Swap16
#define Swap16(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff))
#else