gsasl-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS gsasl/gl


From: gsasl-commit
Subject: CVS gsasl/gl
Date: Wed, 18 Jan 2006 10:11:40 +0100

Update of /home/cvs/gsasl/gl
In directory dopio:/tmp/cvs-serv9751/gl

Modified Files:
        Makefile.am 
Added Files:
        socket_.h 
Log Message:
Add.

--- /home/cvs/gsasl/gl/Makefile.am      2006/01/17 17:39:57     1.55
+++ /home/cvs/gsasl/gl/Makefile.am      2006/01/18 09:10:39     1.56
@@ -84,6 +84,24 @@
 
 ## end   gnulib module stdbool
 
+## begin gnulib module sys_socket
+
+BUILT_SOURCES += $(SYS_SOCKET_H)
+EXTRA_DIST += socket_.h
+
+# We need the following in order to create <sys/socket.h> when the system
+# doesn't have one that works with the given compiler.
+sys/socket.h: socket_.h
+       test -d sys || mkdir sys
+       cp $(srcdir)/socket_.h address@hidden
+       mv address@hidden $@
+MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
+
+mostlyclean-local:
+       -rmdir sys 2>/dev/null
+
+## end   gnulib module sys_socket
+
 ## begin gnulib module xalloc-die
 
 libgl_la_SOURCES += xalloc-die.c

--- /home/cvs/gsasl/gl/socket_.h        2006/01/18 09:10:40     NONE
+++ /home/cvs/gsasl/gl/socket_.h        2006/01/18 09:10:40     1.1
/* Provide a sys/socket header file for systems lacking it (read: mingw32).
   Copyright (C) 2005, 2006 Free Software Foundation, Inc.
   Written by Simon Josefsson.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software Foundation,
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */

#ifndef _SYS_SOCKET_H
#define _SYS_SOCKET_H

/* This file is supposed to be used on platforms that lack
   sys/socket.h.  It is intended to provide definitions and prototypes
   needed by an application.

   Currently only mingw32 is supported, which has the header files
   winsock2.h and ws2tcpip.h that declare the sys/socket.h definitions
   we need. */

#if HAVE_WINSOCK2_H
# include <winsock2.h>
#endif
#if HAVE_WS2TCPIP_H
# include <ws2tcpip.h>
#endif

#endif /* _SYS_SOCKET_H */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]