Skip to content
Snippets Groups Projects
Commit 3fc18563 authored by Fred Wright's avatar Fred Wright Committed by Christopher Nielsen
Browse files

test_fdopendir: Add non-POSIX variant.

This provides coverage for the non-UNIX2003 variant on 32-bit
platforms.

TESTED:
Passes on all platforms.  Generates expected references.
parent cf1a237e
Branches master
No related tags found
No related merge requests found
/*
* Version of test_fdopendir with non-POSIX semantics (32-bit only).
*
* Attempting a 64-bit build with _NONSTD_SOURCE results in an error.
*/
#if defined(__LP64__) && __LP64__
#include <libgen.h>
#include <stdio.h>
int
main(int argc, char *argv[])
{
(void) argc;
printf("%s is inapplicable.\n", basename(argv[0]));
return 0;
}
#else /* 32-bit */
#define _NONSTD_SOURCE
#include "test_fdopendir.c"
#endif /* 32-bit */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment