summaryrefslogtreecommitdiff
path: root/src/file-utils.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2019-09-19 21:26:01 +0200
committerVictor Kareh <[email protected]>2019-10-01 22:06:07 -0400
commit610d0a08d8cb2dea6d380a5bffe6179fdd423589 (patch)
treec7c15154b9f2a19900123177a21e3d5667edf50d /src/file-utils.c
parentf70a69eb07d5b240f1ca7b53bf42077702cded01 (diff)
downloadengrampa-610d0a08d8cb2dea6d380a5bffe6179fdd423589.tar.bz2
engrampa-610d0a08d8cb2dea6d380a5bffe6179fdd423589.tar.xz
Remove internal mkdtemp and define feature test macro
mkdtemp(): /* Since glibc 2.19: */ _DEFAULT_SOURCE || /* Glibc 2.19 and earlier: */ _BSD_SOURCE || /* Since glibc 2.10: */ _POSIX_C_SOURCE >= 200809L _POSIX_C_SOURCE 200809L is enabled by _XOPEN_SOURCE >= 700. Ref: http://man7.org/linux/man-pages/man7/feature_test_macros.7.html
Diffstat (limited to 'src/file-utils.c')
-rw-r--r--src/file-utils.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/file-utils.c b/src/file-utils.c
index c8b1823..55d6bf4 100644
--- a/src/file-utils.c
+++ b/src/file-utils.c
@@ -20,6 +20,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#define _XOPEN_SOURCE 700
+
#include <config.h>
#include <pwd.h>
#include <stdio.h>
@@ -41,10 +43,6 @@
#include "fr-init.h"
-#ifndef HAVE_MKDTEMP
-#include "mkdtemp.h"
-#endif
-
#define BUF_SIZE 4096
#define FILE_PREFIX "file://"
#define FILE_PREFIX_L 7