You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1.2 KiB
51 lines
1.2 KiB
From 5669e7ea665323ee774eda9c77206102fa499453 Mon Sep 17 00:00:00 2001
|
|
From: Hideyuki Tanaka <tanaka.hideyuki@gmail.com>
|
|
Date: Mon, 21 May 2012 17:21:34 +0900
|
|
Subject: [PATCH] add include <unistd.h> (for gcc-4.7.0)
|
|
|
|
---
|
|
src/network/socket.cpp | 1 +
|
|
src/system/mmapper.cpp | 1 +
|
|
tools/genrpc/main.cpp | 1 +
|
|
3 files changed, 3 insertions(+)
|
|
|
|
diff --git a/src/network/socket.cpp b/src/network/socket.cpp
|
|
index b5c50e4..1fba6e6 100644
|
|
--- a/src/network/socket.cpp
|
|
+++ b/src/network/socket.cpp
|
|
@@ -40,6 +40,7 @@
|
|
#include <netinet/in.h>
|
|
#include <netinet/tcp.h>
|
|
#include <arpa/inet.h>
|
|
+#include <unistd.h>
|
|
|
|
#include "dns.h"
|
|
#include "../system/syscall.h"
|
|
diff --git a/src/system/mmapper.cpp b/src/system/mmapper.cpp
|
|
index 90eb7b8..e963fd8 100644
|
|
--- a/src/system/mmapper.cpp
|
|
+++ b/src/system/mmapper.cpp
|
|
@@ -35,6 +35,7 @@
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <sys/mman.h>
|
|
+#include <unistd.h>
|
|
|
|
#include "syscall.h"
|
|
|
|
diff --git a/tools/genrpc/main.cpp b/tools/genrpc/main.cpp
|
|
index 100ea4e..3e5ef16 100644
|
|
--- a/tools/genrpc/main.cpp
|
|
+++ b/tools/genrpc/main.cpp
|
|
@@ -4,6 +4,7 @@
|
|
#include <cctype>
|
|
#include <cstring>
|
|
#include <cstdio>
|
|
+#include <unistd.h>
|
|
using namespace std;
|
|
|
|
#include "../../src/lang/shared_ptr.h"
|
|
--
|
|
1.7.10
|
|
|