From e9e1de469e6bf33c24d9f6332dbca7b9f1eae297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Thu, 10 Jun 2010 17:19:16 +0200 Subject: [PATCH] s3: fix build on HP-UX 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 rename it. (cherry picked from commit ec94efb79d4516b09c7d1d93a4ff8ce0f7046f41) (cherry picked from commit a8c051b2f91852b5228d6a903d6a7fd50d22de28) --- nsswitch/winbind_nss_hpux.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nsswitch/winbind_nss_hpux.h b/nsswitch/winbind_nss_hpux.h index 40a352d..dba70a7 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 rename it: + */ + int h_errno_unused; nss_status_t status; } nss_XbyY_args_t; -- 1.7.10.3