Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ENABLE_* macros are always defined
This fixes a rare compile error and the "Don't keep" cache policy not
working.

Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
  • Loading branch information
swegener authored and perexg committed Nov 9, 2015
1 parent 24332cf commit f05c850
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/muxer.c
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/trap.c
Expand Up @@ -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;
Expand Down

0 comments on commit f05c850

Please sign in to comment.