diff options
author | Rob Landley <rob@landley.net> | 2021-09-24 20:57:42 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-09-24 20:57:42 -0500 |
commit | f3559dc06f5d2a55417a824e494d1138d6017811 (patch) | |
tree | fe4ce7f4c46471d5d1eddec2f8ab1d0a26b18cb8 /lib | |
parent | 92d1ceffe8da58eaa0910ed9bcc17faab7416a43 (diff) | |
download | toybox-f3559dc06f5d2a55417a824e494d1138d6017811.tar.gz |
Fix warnings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.c | 2 | ||||
-rw-r--r-- | lib/portability.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/portability.c b/lib/portability.c index ef9cc008..776b1fb9 100644 --- a/lib/portability.c +++ b/lib/portability.c @@ -655,7 +655,7 @@ long long sendfile_len(int in, int out, long long bytes, long long *consumed) return total; } -#if __APPLE__ +#ifdef __APPLE__ // The absolute minimum POSIX timer implementation to build timeout(1). // Note that although timeout(1) uses POSIX timers to get the monotonic clock, // that doesn't seem to be an option on macOS (without using other libraries), diff --git a/lib/portability.h b/lib/portability.h index 9fc0c9b8..63d8251c 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -372,7 +372,7 @@ char *fs_type_name(struct statfs *statfs); int get_block_device_size(int fd, unsigned long long *size); -#if __APPLE__ +#ifdef __APPLE__ // Apple doesn't have POSIX timers; this is "just enough" for timeout(1). typedef int timer_t; struct itimerspec { |