X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/72d45525d278776caacb293eba6282698592e874..8ea17b5098f9ea11b9777cc2648d5debb00ceb35:/lib/compat.c diff --git a/lib/compat.c b/lib/compat.c index 879f5487..97b40ffd 100644 --- a/lib/compat.c +++ b/lib/compat.c @@ -155,7 +155,7 @@ { unsigned char *p = (unsigned char *)&ip.s_addr; static char buf[18]; -#if WORDS_BIGENDIAN +#ifdef WORDS_BIGENDIAN snprintf(buf, 18, "%d.%d.%d.%d", (int)p[0], (int)p[1], (int)p[2], (int)p[3]); #else @@ -196,7 +196,7 @@ /* some systems don't take the 2nd argument */ int sys_gettimeofday(struct timeval *tv) { -#if HAVE_GETTIMEOFDAY_TZ +#ifdef HAVE_GETTIMEOFDAY_TZ return gettimeofday(tv, NULL); #else return gettimeofday(tv);