]> arthur.barton.de Git - bup.git/commit
Move non-system includes after system includes in _helpers.c.
authorRob Browning <rlb@defaultvalue.org>
Fri, 20 Sep 2013 18:33:02 +0000 (13:33 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 20 Sep 2013 18:35:12 +0000 (13:35 -0500)
commit08521dbf5bbaa2d8c8acd18a89cb9616bb25eaf7
treea6899ec9a870a7539f6ee8c03920aca5bfff1b8e
parent409bc9fa999494f092bbb8fe97a140776295234b
Move non-system includes after system includes in _helpers.c.

Having Python.h before assert.h was apparently causing trouble on
OpenBSD:

  _helpers.c: In function 'bup_xutime_ns':
  _helpers.c:842: warning: implicit declaration of function 'utimensat'
  _helpers.c:842: error: 'AT_FDCWD' undeclared (first use in this function)
  _helpers.c:842: error: (Each undeclared identifier is reported only once
  _helpers.c:842: error: for each function it appears in.)
  _helpers.c:843: error: 'AT_SYMLINK_NOFOLLOW' undeclared (first use in this function)
  error: command 'cc' failed with exit status 1

...and moving the non-sytem includes lower is reasonable anyway.

Thanks to Ryan Hinton <iobass@email.com> for the report.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/_helpers.c