[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - desktop/unx

Michael Stahl mstahl at redhat.com
Mon Dec 15 07:47:28 PST 2014


 desktop/unx/source/file_image_unx.c |    6 ------
 1 file changed, 6 deletions(-)

New commits:
commit a6b2f1facadf23c258d7b5a75241f4d3bde47690
Author: Michael Stahl <mstahl at redhat.com>
Date:   Thu Oct 9 20:41:11 2014 +0200

    desktop: -Werror=unused-macros
    
    The documented feature test macro is _BSD_SOURCE, and anyway, feature
    test macros must be defined before the first libc header is included, so
    this one is evidently useless.
    
    Change-Id: Ib4b2db0c6151c2f3df322992b189257f5dd0ea22
    (cherry picked from commit 2e69b60cc2abb8e0a6773e101c03050c57a12ca3)

diff --git a/desktop/unx/source/file_image_unx.c b/desktop/unx/source/file_image_unx.c
index 89df91e..f1320cc 100644
--- a/desktop/unx/source/file_image_unx.c
+++ b/desktop/unx/source/file_image_unx.c
@@ -24,12 +24,6 @@
 #include <errno.h>
 #include <fcntl.h>
 
-#if defined(LINUX)
-#  ifndef __USE_BSD
-#    define __USE_BSD /* madvise, MADV_WILLNEED */
-#  endif
-#endif /* Linux */
-
 #include <sys/mman.h>
 #include <sys/stat.h>
 


More information about the Libreoffice-commits mailing list