From af5037d7d69a9a68ea2c7d4cda870c058f02d4d9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ji=C5=99=C3=AD=20Z=C3=A1rev=C3=BAcky?= Date: Thu, 14 Feb 2019 20:42:12 +0100 Subject: [PATCH] _GNU_SOURCE implies _LARGEFILE64_SOURCE --- uspace/lib/posix/include/posix/stdio.h | 2 +- uspace/lib/posix/include/posix/sys/types.h | 2 +- uspace/lib/posix/include/posix/unistd.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uspace/lib/posix/include/posix/stdio.h b/uspace/lib/posix/include/posix/stdio.h index 645e222ba..a2550c0bd 100644 --- a/uspace/lib/posix/include/posix/stdio.h +++ b/uspace/lib/posix/include/posix/stdio.h @@ -60,7 +60,7 @@ extern ssize_t getdelim(char **__restrict__ lineptr, size_t *__restrict__ n, extern ssize_t getline(char **__restrict__ lineptr, size_t *__restrict__ n, FILE *__restrict__ stream); -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) extern int fseeko64(FILE *stream, off64_t offset, int whence); extern off64_t ftello64(FILE *stream); #endif diff --git a/uspace/lib/posix/include/posix/sys/types.h b/uspace/lib/posix/include/posix/sys/types.h index 029092115..98019ab32 100644 --- a/uspace/lib/posix/include/posix/sys/types.h +++ b/uspace/lib/posix/include/posix/sys/types.h @@ -54,7 +54,7 @@ typedef int64_t off_t; typedef long off_t; #endif -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) typedef int64_t off64_t; #endif diff --git a/uspace/lib/posix/include/posix/unistd.h b/uspace/lib/posix/include/posix/unistd.h index e8274d868..20e56fd4a 100644 --- a/uspace/lib/posix/include/posix/unistd.h +++ b/uspace/lib/posix/include/posix/unistd.h @@ -85,7 +85,7 @@ extern int unlink(const char *path); extern int dup(int fildes); extern int dup2(int fildes, int fildes2); -#ifdef _LARGEFILE64_SOURCE +#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) extern off64_t lseek64(int fildes, off64_t offset, int whence); extern int ftruncate64(int fildes, off64_t length); #endif -- 2.11.4.GIT