Skip to content
Snippets Groups Projects
Commit 053ab26f authored by Andreas Traczyk's avatar Andreas Traczyk Committed by Andreas Traczyk
Browse files

daemon: add Microsoft dirent.h port

Add a Microsoft port of dirent.h to support directory parsing
functionality. It is named windirent.h to avoid cases where the
compiler searches for headers in local directories first regardless
of chevron wrapping.

File source: https://github.com/tronkko/dirent
commit bf060f1569b156a6df15ea01ea0b4b5465243f06

Change-Id: I45bcf59883949a390b5471b62013a6d95d36903e
Tuleap: #799
parent a386003f
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,11 @@
#include "client/ring_signal.h"
#include "upnp/upnp_context.h"
#ifdef WIN32_NATIVE
#include "windirent.h"
#else
#include <dirent.h>
#endif
#include <cerrno>
#include <cstring>
......
......@@ -43,7 +43,13 @@
#include <sys/stat.h>
#include <libgen.h>
#ifdef WIN32_NATIVE
#include "windirent.h"
#else
#include <dirent.h>
#endif
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment