summaryrefslogtreecommitdiff
path: root/gcc/ada/socket.c
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 15:30:02 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-03 15:30:02 +0000
commit05c3e0e9708795d88a1f0b2f7e653f5bd16dc17c (patch)
treeff38df68a6a2cf36acb36fb9756271956ee76af3 /gcc/ada/socket.c
parent78df2aa8964c653f87be7c8d4eb36ca86114bc22 (diff)
downloadgcc-05c3e0e9708795d88a1f0b2f7e653f5bd16dc17c.tar.gz
* gen-soccon.c: New utility program to generate g-soccon.ads
automatically. * socket.c, gsocket.h: Split inclusion of system header files into a gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c. * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads, g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files should not be edited by hand anymore, but should be regenerated using gen-soccon. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@92828 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/socket.c')
-rw-r--r--gcc/ada/socket.c43
1 files changed, 4 insertions, 39 deletions
diff --git a/gcc/ada/socket.c b/gcc/ada/socket.c
index 6f5067fcabe..cffb0284d5d 100644
--- a/gcc/ada/socket.c
+++ b/gcc/ada/socket.c
@@ -2,11 +2,11 @@
* *
* GNAT COMPILER COMPONENTS *
* *
- * S O C K E T *
+ * S O C K E T *
* *
* C Implementation File *
* *
- * Copyright (C) 2003, Free Software Foundation, Inc. *
+ * Copyright (C) 2003-2004 Free Software Foundation, Inc. *
* *
* GNAT is free software; you can redistribute it and/or modify it under *
* terms of the GNU General Public License as published by the Free Soft- *
@@ -30,44 +30,9 @@
* *
****************************************************************************/
-/* This file provides a portable binding to the fd set functions */
-
-#ifdef __vxworks
-#include "vxWorks.h"
-#endif
-
-#ifdef IN_RTS
-#include "tconfig.h"
-#include "tsystem.h"
-
-#if defined (WINNT)
-#define FD_SETSIZE 1024
-#include <windows.h>
-
-#ifdef __MINGW32__
-#include "mingw32.h"
-#if STD_MINGW
-#include <winsock.h>
-#else
-#include <windows32/sockets.h>
-#endif
-#endif
-#endif
-
-#if defined (VMS)
-#define FD_SETSIZE 4096
-#include <sys/time.h>
-#endif
-
-#else
-#include "config.h"
-#include "system.h"
-#endif
-
-#if !(defined (VMS) || defined (__MINGW32__))
-# include <sys/socket.h>
-#endif
+/* This file provides a portable binding to the sockets API */
+#include "gsocket.h"
#include "raise.h"
extern void __gnat_disable_sigpipe (int fd);