Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2012 13:33:29 +0000 (UTC)
From:      Pietro Cerutti <gahr@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308150 - in head/net/libsocketcpp: . files
Message-ID:  <201212031333.qB3DXTpw039530@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gahr
Date: Mon Dec  3 13:33:29 2012
New Revision: 308150
URL: http://svnweb.freebsd.org/changeset/ports/308150

Log:
  - Fix build with clang
  - Trim Makefile header
  
  Feature safe:	yes

Added:
  head/net/libsocketcpp/files/patch-src::tcpservertest.cpp   (contents, props changed)
Modified:
  head/net/libsocketcpp/Makefile   (contents, props changed)
  head/net/libsocketcpp/files/patch-src::tcptest.cpp   (contents, props changed)

Modified: head/net/libsocketcpp/Makefile
==============================================================================
--- head/net/libsocketcpp/Makefile	Mon Dec  3 13:19:26 2012	(r308149)
+++ head/net/libsocketcpp/Makefile	Mon Dec  3 13:33:29 2012	(r308150)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# New ports collection makefile for:	libsocketcpp
-# Date created:			Aug 12, 2001
-# Whom:				ijliao
-#
+# Created by: ijliao
 # $FreeBSD$
-#
 
 PORTNAME=	libsocketcpp
 PORTVERSION=	1.0.7

Added: head/net/libsocketcpp/files/patch-src::tcpservertest.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/libsocketcpp/files/patch-src::tcpservertest.cpp	Mon Dec  3 13:33:29 2012	(r308150)
@@ -0,0 +1,17 @@
+--- src/tcpservertest.cpp.orig	2012-12-03 14:28:35.000000000 +0100
++++ src/tcpservertest.cpp	2012-12-03 14:28:46.000000000 +0100
+@@ -30,6 +30,7 @@
+ 
+ #include "tcpsocket.h"
+ 
++int
+ main() {
+    printf("\r\nInit Object...");
+    TCPSocket *MyServerSocket = new TCPSocket;
+@@ -67,5 +68,6 @@
+       while(waitpid(-1, NULL, WNOHANG) > 0);
+   }
+       
++  return 0;
+  }
+ 

Modified: head/net/libsocketcpp/files/patch-src::tcptest.cpp
==============================================================================
--- head/net/libsocketcpp/files/patch-src::tcptest.cpp	Mon Dec  3 13:19:26 2012	(r308149)
+++ head/net/libsocketcpp/files/patch-src::tcptest.cpp	Mon Dec  3 13:33:29 2012	(r308150)
@@ -1,12 +1,22 @@
-$FreeBSD$
-
---- src/tcptest.cpp.orig	Sun Jun  9 16:03:19 2002
-+++ src/tcptest.cpp	Sun Jun  9 16:03:31 2002
-@@ -22,6 +22,7 @@
+--- src/tcptest.cpp.orig	2001-02-16 19:45:31.000000000 +0100
++++ src/tcptest.cpp	2012-12-03 14:27:37.000000000 +0100
+@@ -22,8 +22,10 @@
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
 +#include <sys/types.h>
  #include "tcpsocket.h"
  
++int
  main() {
+ 	char *Host = new char[100];
+ 	char *Buffer = new char[2048];
+@@ -62,6 +64,8 @@
+ 	delete [] Buffer;
+ 	delete [] Host;
+ 	delete [] TempMsg;
++
++	return 0;
+ }
+ 
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212031333.qB3DXTpw039530>