aboutsummaryrefslogtreecommitdiffstats
path: root/fastos
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-06-16 07:55:37 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-06-16 10:51:39 +0000
commitb60d8747e307e2868be7ef53d86fbce1c2cbc4d6 (patch)
tree6ca29b6ba6356e562db19b3399263ec4e1cae984 /fastos
parentdf12717358d63e30aade3595781385da17b3e201 (diff)
Reduce scope of definition.
Diffstat (limited to 'fastos')
-rw-r--r--fastos/src/vespa/fastos/socket.cpp2
-rw-r--r--fastos/src/vespa/fastos/types.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fastos/src/vespa/fastos/socket.cpp b/fastos/src/vespa/fastos/socket.cpp
index c7ec605d524..d97fe98a785 100644
--- a/fastos/src/vespa/fastos/socket.cpp
+++ b/fastos/src/vespa/fastos/socket.cpp
@@ -3,6 +3,8 @@
#include <vespa/fastos/socket.h>
#include <sstream>
+typedef caddr_t FastOS_SockOptValP;
+
FastOS_SocketInterface::FastOS_SocketInterface()
: _readEventEnabled(false),
_writeEventEnabled(false),
diff --git a/fastos/src/vespa/fastos/types.h b/fastos/src/vespa/fastos/types.h
index 72a17c4aa33..39eec1bbdbd 100644
--- a/fastos/src/vespa/fastos/types.h
+++ b/fastos/src/vespa/fastos/types.h
@@ -97,8 +97,6 @@
#undef __USE_GNU /* for O_DIRECT define */
#endif
-typedef caddr_t FastOS_SockOptValP;
-
#ifndef FASTOS_AUTOCONF
#if defined(FASTOS_HAVE_SOCKLEN_T)
typedef socklen_t FastOS_SocketLen;