]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
net_handler.cc: make it more compatible with BSDs 10029/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 29 Jun 2016 20:34:38 +0000 (22:34 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Jun 2016 20:34:38 +0000 (22:34 +0200)
According the Linux manual page:
POSIX.1-2001 does not require the inclusion of <sys/types.h>, and this header file is not required on Linux.  However, some historical (BSD) implementations required this header file, and portable applications are probably wise to include it.

Submitted-by: Willem Jan Withagen <wjw@digiware.nl>
src/msg/async/net_handler.cc

index ee1965676050e29280f8f9fb1f9c60ae207392d1..497c1cb77c605c119c580b226b5a9e8eaba4c599 100644 (file)
@@ -14,6 +14,7 @@
  *
  */
 
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netinet/ip.h>