summaryrefslogtreecommitdiff
path: root/libc/debian/patches/nss_status-glibc-compat.patch
blob: c4a555567df26a1b3ee9007f61872bf1f93e1c3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Index: b/usr/src/head/nss_common.h
===================================================================
--- a/usr/src/head/nss_common.h
+++ b/usr/src/head/nss_common.h
@@ -233,11 +233,15 @@ extern "C" {
  * is for nscd private/internal use only.
  */
 
-typedef enum {
+typedef enum nss_status {
 	NSS_SUCCESS = 0,
+#define NSS_STATUS_SUCCESS     NSS_SUCCESS
 	NSS_NOTFOUND = 1,
+#define NSS_STATUS_NOTFOUND    NSS_NOTFOUND
 	NSS_UNAVAIL = 2,
+#define NSS_STATUS_UNAVAIL     NSS_UNAVAIL
 	NSS_TRYAGAIN = 3,
+#define NSS_STATUS_TRYAGAIN    NSS_TRYAGAIN
 	NSS_NISSERVDNS_TRYAGAIN = 4,
 	NSS_TRYLOCAL = 5,
 	NSS_ERROR = 6,