ports/devel/omniORB-4.1/files/patch-undef_minor_macro
Thierry Thomas 5b417f234d - Recopy devel/omniORB to devel/omniORB-4.1
- Downgrade it to 4.1.7

- Unbreak devel/omniNotify

- Add CONFLICTS

CR:		D970
Approved by:	pfg
2014-10-20 19:59:28 +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