forked from Lainports/opnsense-ports
24 lines
627 B
C++
24 lines
627 B
C++
--- src/python-bindings/dc_tool.cpp.orig 2015-04-07 15:10:11 UTC
|
|
+++ src/python-bindings/dc_tool.cpp
|
|
@@ -7,6 +7,21 @@
|
|
# include <pyport.h>
|
|
# endif
|
|
|
|
+/*
|
|
+ * #include <Python.h> solves a ctype function overload issue, but causes
|
|
+ * a dprintf() conflict. Redefining dprintf and getline prevents a collision
|
|
+ * with the definitions in stdio.h, #included from Python.h, so the condor
|
|
+ * versions are used instead.
|
|
+ */
|
|
+
|
|
+#ifdef __FreeBSD__
|
|
+#define dprintf _hide_dprintf
|
|
+#define getline _hide_getline
|
|
+#include <Python.h>
|
|
+#undef getline
|
|
+#undef dprintf
|
|
+#endif
|
|
+
|
|
#include "condor_common.h"
|
|
|
|
#include <boost/python.hpp>
|