1 Add missing includes for proper build on Linux/glibc
3 The current wvstreams code doesn't build on Linux/glibc, with error
4 about chmod() not being available (for wvunixdgsocket.cc) or umask()
5 not being available (for wvatomicfile.cc). Those errors turn out to be
6 missing includes. Those includes were in fact already done, but
7 conditionally for MacOS. We make them unconditional (it probably
8 breaks other platforms, but since Buildroot is Linux only, we don't
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 Index: b/ipstreams/wvunixdgsocket.cc
14 ===================================================================
15 --- a/ipstreams/wvunixdgsocket.cc
16 +++ b/ipstreams/wvunixdgsocket.cc
18 #include "wvunixdgsocket.h"
20 #include <sys/types.h>
24 WvUnixDGSocket::WvUnixDGSocket(WvStringParm filename, bool _server, int perms)
25 : socketfile(filename)
26 Index: b/streams/wvatomicfile.cc
27 ===================================================================
28 --- a/streams/wvatomicfile.cc
29 +++ b/streams/wvatomicfile.cc
31 #include "wvatomicfile.h"
32 #include "wvfileutils.h"
33 #include "wvstrutils.h"
39 WvAtomicFile::WvAtomicFile(WvStringParm filename, int flags, mode_t create_mode)
40 : tmp_file(WvString::null)