ports/sysutils/condor/files/patch-src_python-bindings_secman.cpp
Philip M. Gollucci 52e98e03cc sysutils/condor: update 8.2.6 -> 8.2.8
Update to latest stable release, canonicalize patch filenames, eliminate
GCC dependency and MAKE_JOBS_UNSAFE, replace files/condor_config.in with
version-specific example file provided in the dist, move sample files to
etc/*.sample, improvements to condor_config.local.sample and
condor-config script, make rc script more reliable by replacing fixed
sleep delays with more intelligent wait loops.

PR:                  200713
Submitted by:        jwbacon@tds.net (maintainer)
2015-07-10 04:07:17 +00:00

24 lines
606 B
C++

--- src/python-bindings/secman.cpp.orig 2015-04-07 15:10:11 UTC
+++ src/python-bindings/secman.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 disables them in
+ * in stdio.h, #included by Python.h, so they don't collide with the condor
+ * versions.
+ */
+
+#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>