mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
ITS#8280 Fix Windows EOL in test output
This commit is contained in:
parent
ad93b9e652
commit
634ccc758d
1 changed files with 6 additions and 0 deletions
|
|
@ -21,6 +21,9 @@
|
|||
#include <ac/stdlib.h>
|
||||
#include <ac/string.h>
|
||||
#include <ac/unistd.h>
|
||||
#ifdef _WIN32
|
||||
#include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#define DEFAULT_SPECS "ndb=a,null=n"
|
||||
|
||||
|
|
@ -233,6 +236,9 @@ main( int argc, char **argv )
|
|||
backend = "";
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
_setmode(1, _O_BINARY); /* don't convert \n to \r\n on stdout */
|
||||
#endif
|
||||
flags = get_flags( backend, specs );
|
||||
filter_stdin( flags ? flags : get_flags( backend, DEFAULT_SPECS ));
|
||||
if ( fclose( stdout ) == EOF ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue