Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Apr 2000 01:33:48 +0200 (CEST)
From:      Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To:        Alexandre Julliard <julliard@lrc.epfl.ch>, Patrik Stridvall <ps@leissner.se>
Cc:        freebsd-emulation@freebsd.org
Subject:   PATCH: wine/dlls/wininet/ftp.c
Message-ID:  <Pine.BSF.4.21.0004300129450.10802-100000@deneb.dbai.tuwien.ac.at>

next in thread | raw e-mail | index | archive | help
This patch is required to compile current Wine on FreeBSD 3.4.

	#include <sys/types.h> before <sys/socket.h>.

In general I believe that, as soon as anything from <sys/...> is
included, <sys/types.h> should come as the very first. (Do you 
agree, Patrik?)

Gerald

Index: ftp.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/ftp.c,v
retrieving revision 1.2
diff -c -3 -p -r1.2 ftp.c
*** ftp.c	2000/04/15 20:44:22	1.2
--- ftp.c	2000/04/29 23:29:43
***************
*** 14,24 ****
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
  #ifdef HAVE_SYS_SOCKET_H
  # include <sys/socket.h>
  #endif
  #include <sys/stat.h>
- #include <sys/types.h>
  #include <unistd.h>
  
  #include "windows.h"
--- 14,24 ----
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
+ #include <sys/types.h>
  #ifdef HAVE_SYS_SOCKET_H
  # include <sys/socket.h>
  #endif
  #include <sys/stat.h>
  #include <unistd.h>
  
  #include "windows.h"



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0004300129450.10802-100000>