summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-06-10 17:19:16 +0200
committerBjörn Jacke <bj@sernet.de>2010-06-10 17:24:18 +0200
commitec94efb79d4516b09c7d1d93a4ff8ce0f7046f41 (patch)
tree6457471020a0be61fb2896be36e8b971fda76954 /nsswitch
parentbdd83c0639ad0066a2b0e77611548f2d165bb747 (diff)
downloadsamba-ec94efb79d4516b09c7d1d93a4ff8ce0f7046f41.tar.gz
samba-ec94efb79d4516b09c7d1d93a4ff8ce0f7046f41.tar.bz2
samba-ec94efb79d4516b09c7d1d93a4ff8ce0f7046f41.zip
s3: fix build on HP-UX
this struct member h_errno is not used in the HP-UX code paths, it was just there because Solaris has it, too. As h_errno is a function call macro on HP-UX when thread support is enabled we run into trouble here. Just commenting it out should be okay as we don't use it anyway.
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/winbind_nss_hpux.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/nsswitch/winbind_nss_hpux.h b/nsswitch/winbind_nss_hpux.h
index 40a352d4d3..393c0a35db 100644
--- a/nsswitch/winbind_nss_hpux.h
+++ b/nsswitch/winbind_nss_hpux.h
@@ -130,7 +130,12 @@ typedef struct nss_XbyY_args {
void *returnval;
int erange;
- int h_errno;
+ /*
+ * h_errno is defined as function call macro for multithreaded applications
+ * in HP-UX. *this* h_errno is not used in the HP-UX codepath of our nss
+ * modules, so let's simply comment it out here:
+ * int h_errno;
+ */
nss_status_t status;
} nss_XbyY_args_t;