diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/ast_expr2.c | 2 | ||||
-rw-r--r-- | main/editline/refresh.c | 2 | ||||
-rw-r--r-- | main/enum.c | 2 | ||||
-rw-r--r-- | main/srv.c | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/main/ast_expr2.c b/main/ast_expr2.c index 5c1d9bf71..85515c455 100644 --- a/main/ast_expr2.c +++ b/main/ast_expr2.c @@ -367,7 +367,7 @@ typedef short int yytype_int16; #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ -# if YYENABLE_NLS +# ifdef YYENABLE_NLS # if ENABLE_NLS # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) diff --git a/main/editline/refresh.c b/main/editline/refresh.c index 935117741..fcebe1253 100644 --- a/main/editline/refresh.c +++ b/main/editline/refresh.c @@ -215,7 +215,7 @@ re_refresh(EditLine *el) prompt_print(el, EL_PROMPT); /* draw the current input buffer */ -#if notyet +#ifdef notyet termsz = el->el_term.t_size.h * el->el_term.t_size.v; if (el->el_line.lastchar - el->el_line.buffer > termsz) { /* diff --git a/main/enum.c b/main/enum.c index 0cdf308fa..5db6adb01 100644 --- a/main/enum.c +++ b/main/enum.c @@ -48,9 +48,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <sys/socket.h> #include <netinet/in.h> #include <arpa/nameser.h> +#ifdef __APPLE__ #if __APPLE_CC__ >= 1495 #include <arpa/nameser_compat.h> #endif +#endif #include <resolv.h> #include <stdlib.h> #include <string.h> diff --git a/main/srv.c b/main/srv.c index 8b7e76bfc..7cf072cda 100644 --- a/main/srv.c +++ b/main/srv.c @@ -36,9 +36,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> +#ifdef __APPLE__ #if __APPLE_CC__ >= 1495 #include <arpa/nameser_compat.h> #endif +#endif #include <resolv.h> #include <stdio.h> #include <string.h> |