X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fheaders%2Fshared.h;h=4165c5b447a06393ad1f96df965c5a11ab99670d;hp=d3e019bcb20cb05118b154b5f6208617330ab6c6;hb=301048b51990573e58a30dc4a5bb4ec285cad554;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a diff --git a/src/headers/shared.h b/src/headers/shared.h index d3e019b..4165c5b 100755 --- a/src/headers/shared.h +++ b/src/headers/shared.h @@ -1,11 +1,11 @@ -/* @(#) $Id: shared.h,v 1.47 2009/09/17 18:47:23 dcid Exp $ */ +/* @(#) $Id$ */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * * This program is a free software; you can redistribute it * and/or modify it under the terms of the GNU General Public - * License (version 3) as published by the FSF - Free Software + * License (version 2) as published by the FSF - Free Software * Foundation */ @@ -132,7 +132,13 @@ typedef uint8_t u_int8_t; typedef int sock2len_t; #endif -/* For Windows (so high maintenance :)) */ + +#ifndef WIN32 +#define CloseSocket(x) close(x) +#endif + + +/* For Windows */ #ifdef WIN32 typedef int uid_t; typedef int gid_t; @@ -141,6 +147,7 @@ typedef int socklen_t; #define srandom(x) srand(x) #define random(x) rand(x) #define lstat(x,y) stat(x,y) +#define CloseSocket(x) closesocket(x) void WinSetError(); typedef unsigned short int u_int16_t; typedef unsigned char u_int8_t;