fixed a build issue for missing lchown against old macosx sdks

added Awk::writeConsoleBytes(), Awk::writePipeBytes(), Awk::writeFileBytes()
This commit is contained in:
2019-04-23 08:41:05 +00:00
parent 50eec135d8
commit 03301b79bf
7 changed files with 59 additions and 14 deletions

View File

@ -346,9 +346,9 @@ int qse_fs_setattrsys (qse_fs_t* fs, qse_fs_char_t* path, const qse_fattr_t* att
int x;
if (flags & QSE_FILE_ATTR_SYMLINK)
x = QSE_LCHOWN (path, attr->uid, attr->gid);
x = QSE_LCHOWN(path, attr->uid, attr->gid);
else
x = QSE_CHOWN (path, attr->uid, attr->gid);
x = QSE_CHOWN(path, attr->uid, attr->gid);
if (x <= -1)
{

View File

@ -34,6 +34,7 @@
/* TODO: windows event log */
#else
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>

View File

@ -35,6 +35,7 @@
#else
# include <setjmp.h>
# if defined(HAVE_UCONTEXT_H)
# include <signal.h> /* for old DARWIN/MACOSX */
# include <ucontext.h>
# endif
# if defined(HAVE_MAKECONTEXT) && defined(HAVE_SWAPCONTEXT) && \