Browse Source

[1452] use <errno.h> instead of sys/errno.h. the former seems to be more portable.

JINMEI Tatuya 13 years ago
parent
commit
b5e5d9e912
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/lib/util/io/socketsession.cc
  2. 1 1
      src/lib/util/tests/socketsession_unittest.cc

+ 1 - 1
src/lib/util/io/socketsession.cc

@@ -12,13 +12,13 @@
 // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 // PERFORMANCE OF THIS SOFTWARE.
 
-#include <sys/errno.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
 
 #include <netinet/in.h>
 
+#include <errno.h>
 #include <stdint.h>
 #include <string.h>
 

+ 1 - 1
src/lib/util/tests/socketsession_unittest.cc

@@ -14,9 +14,9 @@
 
 #include <sys/types.h>
 #include <sys/socket.h>
-#include <sys/errno.h>
 #include <sys/un.h>
 
+#include <errno.h>
 #include <fcntl.h>
 #include <string.h>
 #include <netdb.h>