]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
ENABLE_* macros are always defined
authorSven Wegener <sven.wegener@stealer.net>
Mon, 9 Nov 2015 19:44:23 +0000 (20:44 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 9 Nov 2015 21:11:16 +0000 (22:11 +0100)
This fixes a rare compile error and the "Don't keep" cache policy not
working.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
src/muxer.c
src/trap.c

index d8a0fd92d2be057730d988d557ac19dc3a14b6b2..1df4efb13b68fd7a08cc203f3c3f235c1ee62bbb 100644 (file)
@@ -306,7 +306,7 @@ muxer_cache_update(muxer_t *m, int fd, off_t pos, size_t size)
   case MC_CACHE_DONTKEEP:
 #if defined(PLATFORM_DARWIN)
     fcntl(fd, F_NOCACHE, 1);
-#elif !defined(ENABLE_ANDROID)
+#elif !ENABLE_ANDROID
     posix_fadvise(fd, pos, size, POSIX_FADV_DONTNEED);
 #endif
     break;
index 78e160a4a33f02ce0122c19d960dc7f3928e5c90..af3f2cd30a2aeb475de538d7e750f686055f8376 100644 (file)
@@ -148,7 +148,7 @@ traphandler(int sig, siginfo_t *si, void *UC)
   int nframes = backtrace(frames, MAXFRAMES);
   Dl_info dli;
 #endif
-#if defined(NGREG) || defined(ENABLE_EXECINFO)
+#if defined(NGREG) || ENABLE_EXECINFO
   int i;
 #endif
   const char *reason = NULL;