summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/nt_status.h4
-rw-r--r--source3/libaddns/dnserr.h2
-rw-r--r--source3/libsmb/clierror.c2
3 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/nt_status.h b/source3/include/nt_status.h
index 968657ca44..f5495c8c95 100644
--- a/source3/include/nt_status.h
+++ b/source3/include/nt_status.h
@@ -34,7 +34,7 @@
from using BOOL for internal functions
*/
-#if defined(HAVE_IMMEDIATE_STRUCTURES)
+#if defined(HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
typedef struct {uint32 v;} NTSTATUS;
#define NT_STATUS(x) ((NTSTATUS) { x })
#define NT_STATUS_V(x) ((x).v)
@@ -44,7 +44,7 @@ typedef uint32 NTSTATUS;
#define NT_STATUS_V(x) (x)
#endif
-#if defined(HAVE_IMMEDIATE_STRUCTURES)
+#if defined(HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
typedef struct {uint32 w;} WERROR;
#define W_ERROR(x) ((WERROR) { x })
#define W_ERROR_V(x) ((x).w)
diff --git a/source3/libaddns/dnserr.h b/source3/libaddns/dnserr.h
index eee1303c00..013120b652 100644
--- a/source3/libaddns/dnserr.h
+++ b/source3/libaddns/dnserr.h
@@ -37,7 +37,7 @@
/* Setup the DNS_ERROR typedef. Technique takes from nt_status.h */
-#if defined(HAVE_IMMEDIATE_STRUCTURES)
+#if defined(HAVE_IMMEDIATE_STRUCTURES_XX_DISABLED)
typedef struct {uint32 v;} DNS_ERROR;
#define ERROR_DNS(x) ((DNS_ERROR) { x })
#define ERROR_DNS_V(x) ((x).v)
diff --git a/source3/libsmb/clierror.c b/source3/libsmb/clierror.c
index 44573bd29b..01c42bd36a 100644
--- a/source3/libsmb/clierror.c
+++ b/source3/libsmb/clierror.c
@@ -226,7 +226,7 @@ void cli_dos_error(struct cli_state *cli, uint8 *eclass, uint32 *ecode)
}
/* Return a UNIX errno from a NT status code */
-static struct {
+struct {
NTSTATUS status;
int error;
} nt_errno_map[] = {