From 92f85920b02ad5c9c4262c2c17778f69779c0604 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 6 Feb 2019 08:37:39 +0000 Subject: Rename mkLtemp to mkhtemp; try to make MacOS happy --- src/include/skalibs/nonposix.h | 7 +++++++ src/include/skalibs/posixplz.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/skalibs/nonposix.h b/src/include/skalibs/nonposix.h index 3ef4e99..be7e90d 100644 --- a/src/include/skalibs/nonposix.h +++ b/src/include/skalibs/nonposix.h @@ -53,6 +53,13 @@ #endif + /* MacOS: needs this for full SUSv3 conformance. Don't ask. */ + +#ifndef _DARWIN_C_SOURCE +#define _DARWIN_C_SOURCE +#endif + + /* Unfortunately we can't fully avoid #ifdef forests, because the BSDs are bloody snowflakes. See: setgroups(). */ diff --git a/src/include/skalibs/posixplz.h b/src/include/skalibs/posixplz.h index f1b54d3..dda66ee 100644 --- a/src/include/skalibs/posixplz.h +++ b/src/include/skalibs/posixplz.h @@ -51,7 +51,7 @@ extern int mkfiletemp (char *, createfunc_t_ref, mode_t, void *) ; extern int mklinktemp (char const *, char *, linkfunc_t_ref) ; extern int mkptemp (char *) ; extern int mkltemp (char const *, char *) ; -extern int mkLtemp (char const *, char *) ; +extern int mkhtemp (char const *, char *) ; extern int mkctemp (char *, mode_t, dev_t) ; extern int mkbtemp (char *, mode_t, dev_t) ; -- cgit v1.3.1