Commit 9dbb8a40 authored by Marc Ariberti's avatar Marc Ariberti

* small bug fix with gcc 2.95

parent 55f0a110
......@@ -3,13 +3,13 @@
###############################################################################
VERSION=0.2.1
CC=g++-3.2
#CC=c++
#CC=g++-3.2
CC=c++
CFLAGS=-O3 -g -I. -Wall -DVERSION="\"$(VERSION)\""
all: vlcs
vlcs.o: vlcs.c vlcs.h logger.h socket.h config.h
vlcs.o: vlcs.c vlcs.h logger.h socket.h config.h host.h
$(CC) $(CFLAGS) -c -o vlcs.o vlcs.c
host.o: host.c host.h
......@@ -18,10 +18,10 @@ host.o: host.c host.h
socket.o: socket.c socket.h logger.h vlcs.h config.h host.h
$(CC) $(CFLAGS) -c -o socket.o socket.c
logger.o: logger.c logger.h vlcs.h
logger.o: logger.c logger.h vlcs.h host.h
$(CC) $(CFLAGS) -c -o logger.o logger.c
config.o: config.c config.h logger.h vlcs.h socket.h
config.o: config.c config.h logger.h vlcs.h socket.h host.h
$(CC) $(CFLAGS) -c -o config.o config.c
vlcs: vlcs.o logger.o config.o socket.o host.o
......@@ -29,7 +29,7 @@ vlcs: vlcs.o logger.o config.o socket.o host.o
tar:
mkdir miniVLCS-$(VERSION)
cp logger.c logger.h socket.c socket.h config.c config.h vlcs.c vlcs.h vlcs.conf Makefile README COPYING miniVLCS-$(VERSION)
cp logger.c logger.h socket.c socket.h config.c config.h host.c host.h vlcs.c vlcs.h vlcs.conf Makefile README COPYING miniVLCS-$(VERSION)
tar cvzf miniVLCS-$(VERSION).tar.gz miniVLCS-$(VERSION)
rm -rf miniVLCS-$(VERSION)
......
......@@ -3,7 +3,7 @@
* socket.c: VideoLAN Channel Server network facilities
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: host.c,v 1.1 2002/12/02 17:52:25 marcari Exp $
* $Id: host.c,v 1.2 2002/12/02 17:57:38 marcari Exp $
*
* Authors: Marc Ariberti <marcari@via.ecp.fr>
*
......@@ -22,6 +22,7 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
*****************************************************************************/
#include <string>
#include <string.h>
#include <arpa/inet.h>
#include <fstream>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment