This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ada/socket.c: Provide memcpy prototype


Andreas Jaeger <aj@suse.de> writes:

> Compiling  I notcied this warning:
>
> socket.c: In function ‘__gnat_new_socket_set’:
> socket.c:139: warning: incompatible implicit declaration of built-in function ‘memcpy’
>
> Fixed with the appended patch, testing now on x86_64-linux-gnu.
>
> Ok to commmit if testing passes?

Testing passed, I commit this now as obvious,

Andreas

>
> Andreas
>
> 2005-09-16  Andreas Jaeger  <aj@suse.de>
>
> 	* socket.c: Add string.h for memcpy.
>
> ============================================================
> Index: gcc/ada/socket.c
> --- gcc/ada/socket.c	5 Sep 2005 07:50:26 -0000	1.7
> +++ gcc/ada/socket.c	16 Sep 2005 07:00:15 -0000
> @@ -39,6 +39,8 @@
>  #include "raise.h"
>  /* Required for __gnat_malloc() */
>  
> +#include <string.h>
> +
>  extern void __gnat_disable_sigpipe (int fd);
>  extern void __gnat_free_socket_set (fd_set *);
>  extern void __gnat_last_socket_in_set (fd_set *, int *);

Attachment: pgp00000.pgp
Description: PGP signature

Andreas
-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00001.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]