mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- update to 6.3.2
- remove patches already in the tree PR: 186772 Submitted by: Alex Samorukov <samm@os2.kiev.ua> (maintainer)
This commit is contained in:
parent
d1a23c1e5d
commit
546d295d5c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=344315
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= anyremote
|
||||
PORTVERSION= 6.3.1
|
||||
PORTVERSION= 6.3.2
|
||||
CATEGORIES= comms
|
||||
MASTER_SITES= SF
|
||||
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (anyremote-6.3.1.tar.gz) = 0d0a99c12630d462186b4468288a1ba2adef1e70c95bdd35f3165116cb8f4dd6
|
||||
SIZE (anyremote-6.3.1.tar.gz) = 2423381
|
||||
SHA256 (anyremote-6.3.2.tar.gz) = ab878677e3581ac716ce77bf601a10bfb199a136e605ca02a729428ed6341620
|
||||
SIZE (anyremote-6.3.2.tar.gz) = 2424004
|
||||
|
@ -1,46 +0,0 @@
|
||||
--- src/pr_web.c 2013-07-10 11:07:03.922188287 +0200
|
||||
+++ src/pr_web.c 2013-07-10 11:27:16.319193955 +0200
|
||||
@@ -33,7 +33,11 @@
|
||||
#include <netinet/in.h>
|
||||
#include <netdb.h>
|
||||
#include <unistd.h>
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <sys/uio.h>
|
||||
+#else
|
||||
#include <sys/sendfile.h>
|
||||
+#endif
|
||||
|
||||
#define SERVER "webserver/1.1"
|
||||
#define PROTOCOL "HTTP/1.1"
|
||||
@@ -272,7 +276,7 @@
|
||||
static void sendFile(_WebClientConnection* cc, char *path, struct stat *statbuf)
|
||||
{
|
||||
int fd = cc->connDescriptor;
|
||||
- int bytes_sent;
|
||||
+ ssize_t bytes_sent;
|
||||
|
||||
INFO2("[WS]: sendFile %s",path);
|
||||
|
||||
@@ -293,8 +297,12 @@
|
||||
int length = S_ISREG(statbuf->st_mode) ? statbuf->st_size : -1;
|
||||
sendHeaders(cc, 200, "OK", NULL, get_mime_type(path), length, statbuf->st_mtime);
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+ int err = sendfile(fdout, fd, 0, length, NULL, &bytes_sent, 0);
|
||||
+#else
|
||||
bytes_sent = sendfile(fd,fdout,NULL,length);
|
||||
-
|
||||
+ int err = 0;
|
||||
+#endif
|
||||
/*while ((n = fread(data, 1, sizeof(data), file)) > 0) {
|
||||
//INFO2("read %d bytes from file",n);
|
||||
|
||||
@@ -305,7 +313,7 @@
|
||||
}
|
||||
}*/
|
||||
|
||||
- if (length != bytes_sent) {
|
||||
+ if (err || length != bytes_sent) {
|
||||
ERROR2("[WS]: Error on send file %s", path);
|
||||
}
|
||||
|
@ -1,17 +0,0 @@
|
||||
--- src/sys_util.c 2013-07-10 14:49:42.461289772 +0200
|
||||
+++ src/sys_util.c 2013-07-10 14:49:02.000000000 +0200
|
||||
@@ -24,13 +24,13 @@
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
-#include <net/if.h>
|
||||
#include <netinet/in.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/socket.h>
|
||||
+#include <net/if.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
Loading…
Reference in New Issue
Block a user