summaryrefslogtreecommitdiffstats
path: root/base/unix_domain_socket_posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/unix_domain_socket_posix.h')
-rw-r--r--base/unix_domain_socket_posix.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/unix_domain_socket_posix.h b/base/unix_domain_socket_posix.h
index ecf6cfb..51c821b 100644
--- a/base/unix_domain_socket_posix.h
+++ b/base/unix_domain_socket_posix.h
@@ -4,6 +4,7 @@
#ifndef BASE_UNIX_DOMAIN_SOCKET_POSIX_H_
#define BASE_UNIX_DOMAIN_SOCKET_POSIX_H_
+#pragma once
#include <stdint.h>
#include <sys/types.h>
@@ -16,7 +17,7 @@ namespace base {
// Use sendmsg to write the given msg and include a vector
// of file descriptors. Returns true iff successful.
bool SendMsg(int fd, const void* msg, size_t length,
- std::vector<int>& fds);
+ const std::vector<int>& fds);
// Use recvmsg to read a message and an array of file descriptors. Returns
// -1 on failure. Note: will read, at most, 16 descriptors.
ssize_t RecvMsg(int fd, void* msg, size_t length, std::vector<int>* fds);