public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-analyzer/ethloop/files: ethloop-10-gcc44.patch
@ 2010-12-01  1:03 Jeroen Roovers (jer)
  0 siblings, 0 replies; only message in thread
From: Jeroen Roovers (jer) @ 2010-12-01  1:03 UTC (permalink / raw
  To: gentoo-commits

jer         10/12/01 01:03:37

  Added:                ethloop-10-gcc44.patch
  Log:
  Fix recv call (bug #336755), add some more includes. Use make command line variables instead of patching Makefile. Remove empty DEPEND.
  
  (Portage version: 2.2.0_alpha6/cvs/Linux i686)

Revision  Changes    Path
1.1                  net-analyzer/ethloop/files/ethloop-10-gcc44.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ethloop/files/ethloop-10-gcc44.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/ethloop/files/ethloop-10-gcc44.patch?rev=1.1&content-type=text/plain

Index: ethloop-10-gcc44.patch
===================================================================
Fix recv call (bug #336755), add some more includes

--- a/ethloop.c	2002-05-03 15:13:20.000000000 +0200
+++ b/ethloop.c	2010-12-01 01:51:58.000000000 +0100
@@ -1,5 +1,7 @@
 /* vim: cin sw=4 ts=4
 */
+#include <arpa/inet.h> /* htons() */
+#include <sys/types.h> /* recv() */
 #include <sys/socket.h>
 #include <sys/ioctl.h>
 #include <sys/poll.h>
@@ -13,6 +15,7 @@
 #include <stdlib.h>
 #include <sys/time.h>
 #include <signal.h>
+#include <string.h>
 
 int sock;
 
@@ -133,7 +136,7 @@
 int recv_raw(int tmo)
 {
 	struct pollfd pf = {sock,POLLIN,0};
-	int r; unsigned short proto;
+	ssize_t r; unsigned short proto;
 	if(poll(&pf,1,tmo) <= 0) return 0;
 	r = recv(sock,&buf,1550,0);
 	if (r <= 0) {






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-12-01  1:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-01  1:03 [gentoo-commits] gentoo-x86 commit in net-analyzer/ethloop/files: ethloop-10-gcc44.patch Jeroen Roovers (jer)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox