Made the remote_disk_server build under R5.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21945 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-08-14 14:54:09 +00:00
parent d2d3fb8472
commit 2a39e9e44e
2 changed files with 7 additions and 7 deletions

View File

@ -1,12 +1,13 @@
/* /*
* Copyright 2005, Ingo Weinhold <bonefish@cs.tu-berlin.de>. * Copyright 2005-2007, Ingo Weinhold <bonefish@cs.tu-berlin.de>.
* All rights reserved. Distributed under the terms of the MIT License. * All rights reserved. Distributed under the terms of the MIT License.
*/ */
#ifndef _BOOT_REMOTE_DISK_DEFS_H #ifndef _BOOT_REMOTE_DISK_DEFS_H
#define _BOOT_REMOTE_DISK_DEFS_H #define _BOOT_REMOTE_DISK_DEFS_H
#include <stdint.h>
#include <inttypes.h>
enum { enum {
REMOTE_DISK_SERVER_PORT = 8765, REMOTE_DISK_SERVER_PORT = 8765,

View File

@ -6,6 +6,7 @@
#include <endian.h> #include <endian.h>
#include <errno.h> #include <errno.h>
#include <fcntl.h> #include <fcntl.h>
#include <inttypes.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
@ -16,11 +17,9 @@
#include <boot/net/RemoteDiskDefs.h> #include <boot/net/RemoteDiskDefs.h>
#if defined(__BEOS__) && !defined(__HAIKU__) #if defined(__BEOS__) && !defined(__HAIKU__)
# include <limits.h>
typedef int socklen_t; typedef int socklen_t;
#else
# include <stdint.h>
#endif #endif
@ -91,7 +90,7 @@ public:
// short package? // short package?
if (bytesRead < (ssize_t)sizeof(remote_disk_header)) { if (bytesRead < (ssize_t)sizeof(remote_disk_header)) {
fprintf(stderr, "Dropping short request package (%d bytes).\n", fprintf(stderr, "Dropping short request package (%d bytes).\n",
bytesRead); (int)bytesRead);
continue; continue;
} }