zz40-xc-ovr.m4: fix variable assignment of subshell output bashism
[platform/upstream/c-ares.git] / ares_nowarn.h
index 0cc204c..9b76d66 100644 (file)
@@ -2,7 +2,7 @@
 #define HEADER_CARES_NOWARN_H
 
 
-/* Copyright (C) 2010-2011 by Daniel Stenberg
+/* Copyright (C) 2010-2012 by Daniel Stenberg
  *
  * Permission to use, copy, modify, and distribute this
  * software and its documentation for any purpose and without
  * without express or implied warranty.
  */
 
-int aresx_uztosi(size_t uznum);
+long  aresx_uztosl(size_t uznum);
+int   aresx_uztosi(size_t uznum);
+short aresx_uztoss(size_t uznum);
+
+short aresx_sitoss(int sinum);
 
 int aresx_sltosi(long slnum);
 
@@ -25,6 +29,8 @@ int aresx_sztosi(ssize_t sznum);
 
 unsigned int aresx_sztoui(ssize_t sznum);
 
+unsigned short aresx_sitous(int sinum);
+
 #if defined(__INTEL_COMPILER) && defined(__unix__)
 
 int aresx_FD_ISSET(int fd, fd_set *fdset);
@@ -33,6 +39,10 @@ void aresx_FD_SET(int fd, fd_set *fdset);
 
 void aresx_FD_ZERO(fd_set *fdset);
 
+unsigned short aresx_htons(unsigned short usnum);
+
+unsigned short aresx_ntohs(unsigned short usnum);
+
 #ifndef BUILDING_ARES_NOWARN_C
 #  undef  FD_ISSET
 #  define FD_ISSET(a,b) aresx_FD_ISSET((a),(b))
@@ -40,6 +50,10 @@ void aresx_FD_ZERO(fd_set *fdset);
 #  define FD_SET(a,b)   aresx_FD_SET((a),(b))
 #  undef  FD_ZERO
 #  define FD_ZERO(a)    aresx_FD_ZERO((a))
+#  undef  htons
+#  define htons(a)      aresx_htons((a))
+#  undef  ntohs
+#  define ntohs(a)      aresx_ntohs((a))
 #endif
 
 #endif /* __INTEL_COMPILER && __unix__ */