summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h5
-rw-r--r--source3/include/smb.h10
2 files changed, 9 insertions, 6 deletions
diff --git a/source3/include/includes.h b/source3/include/includes.h
index 3d6147f587..51f2ca9ee8 100644
--- a/source3/include/includes.h
+++ b/source3/include/includes.h
@@ -1029,6 +1029,11 @@ extern int DEBUGLEVEL;
#define RTLD_NOW 0
#endif
+/* needed for some systems without iconv */
+#ifndef EILSEQ
+#define EILSEQ EINVAL
+#endif
+
/* add varargs prototypes with printf checking */
int fdprintf(int , char *, ...) PRINTF_ATTRIBUTE(2,3);
#ifndef HAVE_SNPRINTF_DECL
diff --git a/source3/include/smb.h b/source3/include/smb.h
index 091ed2ac66..2e83e1c637 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -1687,15 +1687,13 @@ typedef struct {
/* generic iconv conversion structure */
typedef struct {
- size_t (*direct)(char **inbuf, size_t *inbytesleft,
+ size_t (*direct)(void *cd, char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
- size_t (*pull)(char **inbuf, size_t *inbytesleft,
+ size_t (*pull)(void *cd, char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
- size_t (*push)(char **inbuf, size_t *inbytesleft,
+ size_t (*push)(void *cd, char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft);
-#ifdef HAVE_NATIVE_ICONV
- iconv_t cd;
-#endif
+ void *cd_direct, *cd_pull, *cd_push;
} *smb_iconv_t;
#endif /* _SMB_H */