diff options
| author | Simon McVittie <smcv@debian.org> | 2016-03-05 16:08:03 +0000 |
|---|---|---|
| committer | Simon McVittie <smcv@debian.org> | 2016-03-05 16:08:03 +0000 |
| commit | 135eeb0c0ddc871c5b5dfbaf09aace94f7126cc7 (patch) | |
| tree | b02a87400ad456940df725c4ea8ed8ce094c2971 /_dbus_bindings/bytes.c | |
| parent | 3f7aa13c82444457675763cdf0d3bb5c5a45d137 (diff) | |
| download | dbus-python-135eeb0c0ddc871c5b5dfbaf09aace94f7126cc7.tar.gz | |
Always include dbus_bindings-internal.h first
This file includes <Python.h>, with some #defines that affect the
interpretation of the Python headers (PY_SSIZE_T_CLEAN, PY_SIZE_T_CLEAN).
In particular, <Python.h> transitively includes pyconfig.h, which
defines _GNU_SOURCE, altering the version of struct stat used;
this is potentially a problem if a struct stat is shared between
files, although in practice we don't do that.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749133
Diffstat (limited to '_dbus_bindings/bytes.c')
| -rw-r--r-- | _dbus_bindings/bytes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/_dbus_bindings/bytes.c b/_dbus_bindings/bytes.c index 51c1cd8..b0ff817 100644 --- a/_dbus_bindings/bytes.c +++ b/_dbus_bindings/bytes.c @@ -23,10 +23,11 @@ * DEALINGS IN THE SOFTWARE. */ +#include "dbus_bindings-internal.h" + #include <Python.h> #include <structmember.h> -#include "dbus_bindings-internal.h" #include "types-internal.h" #ifdef PY3 |
