diff options
author | Eric Blake <eblake@redhat.com> | 2012-03-20 16:44:39 -0600 |
---|---|---|
committer | Eric Blake <eblake@redhat.com> | 2012-03-20 16:54:39 -0600 |
commit | fdb343d1b09278b2098cd69fa0abce1a72c624bc (patch) | |
tree | db15bb4496a9e14e35801e7976818bc813a2b11d /libvirt-override.c | |
parent | f5c5e7e77bb962bcacd849c52891d694002d03c5 (diff) | |
download | libvirt-python-v6-fdb343d1b09278b2098cd69fa0abce1a72c624bc.tar.gz libvirt-python-v6-fdb343d1b09278b2098cd69fa0abce1a72c624bc.tar.xz libvirt-python-v6-fdb343d1b09278b2098cd69fa0abce1a72c624bc.zip |
python: always include config.h first
On RHEL 5.7, I got this compilation failure:
In file included from /usr/include/python2.4/pyport.h:98,
from /usr/include/python2.4/Python.h:55,
from libvirt.c:3:
../gnulib/lib/time.h:468: error: expected ';', ',' or ')' before '__timer'
Turns out that our '#define restrict __restrict' from config.h wasn't
being picked up. Gnulib _requires_ that all .c files include <config.h>
first, otherwise the gnulib header overrides tend to misbehave.
Problem introduced by patch c700613b8.
* python/generator.py (buildStubs): Include <config.h> first.
Diffstat (limited to 'libvirt-override.c')
0 files changed, 0 insertions, 0 deletions