Browse Source

fl_wrapper: issue a warning about large file capability only if libc is glibc

master
Nagy Károly Gábriel 8 years ago
parent
commit
630f4521ba
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/tools-source/fl_wrapper/fl_wrapper.c

+ 4
- 2
src/tools-source/fl_wrapper/fl_wrapper.c

@ -3,7 +3,7 @@
* This copyright note is auto-generated by ./scripts/Create-CopyPatch.
*
* Filename: src/tools-source/fl_wrapper/fl_wrapper.c
* Copyright (C) 2006 - 2010 The OpenSDE Project
* Copyright (C) 2006 - 2016 The OpenSDE Project
* Copyright (C) 2004 - 2006 The T2 SDE Project
* Copyright (C) 1998 - 2003 Clifford Wolf
*
@ -373,7 +373,9 @@ static inline void log_append(const char *logfile, const char *fmt, ...)
#ifdef __USE_LARGEFILE
fd=open64(logfile,O_APPEND|O_WRONLY|O_LARGEFILE,0);
#else
# warning "The wrapper library will not work properly for large logs!"
# ifdef __GLIBC__
warning "The wrapper library will not work properly for large logs!"
# endif
fd=open(logfile,O_APPEND|O_WRONLY,0);
#endif
if (fd == -1) return;

Loading…
Cancel
Save