Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
fe60441e
Commit
fe60441e
authored
May 07, 2015
by
Howard Chu
Committed by
Quanah Gibson-Mount
May 11, 2015
Browse files
ITS#8127 fix ftello for Win32
parent
bd9bba82
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/slapadd.c
View file @
fe60441e
...
...
@@ -40,6 +40,20 @@
#include
"slapcommon.h"
#ifdef _WIN32
# ifdef __WIN64__
# define ftello(fp) _ftelli64(fp)
# else
/* Ideally we would use _ftelli64 but that was only available
* starting in MSVCR80.DLL. The approach used here is inaccurate
* because returning the underlying file handle's file pointer
* doesn't take the stdio buffer offset into account. But, it
* works with all versions of MSVCRT.
*/
# define ftello(fp) _telli64(fileno(fp))
# endif
#endif
extern
int
slap_DN_strict
;
/* dn.c */
static
char
csnbuf
[
LDAP_PVT_CSNSTR_BUFSIZE
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment