Skip to content

Commit

Permalink
wafsamba: Allow passing 'lib' to CHECK_STRUCTURE_MEMBER
Browse files Browse the repository at this point in the history
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13238

We need to be able to point it to the right header location, so we need
to be able to pass the 'lib' that it gets set.

Signed-off-by: Andreas Schneider <[email protected]>
Reviewed-by: Alexander Bokovoy <[email protected]>
  • Loading branch information
cryptomilk committed Jan 22, 2018
1 parent ee0be7e commit 87f105d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion buildtools/wafsamba/samba_autoconf.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ def CHECK_CODE(conf, code, define,

@conf
def CHECK_STRUCTURE_MEMBER(conf, structname, member,
always=False, define=None, headers=None):
always=False, define=None, headers=None,
lib=None):
'''check for a structure member'''
if define is None:
define = 'HAVE_%s' % member.upper()
Expand All @@ -463,6 +464,7 @@ def CHECK_STRUCTURE_MEMBER(conf, structname, member,
define,
execute=False,
link=False,
lib=lib,
always=always,
headers=headers,
local_include=False,
Expand Down

0 comments on commit 87f105d

Please sign in to comment.