[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
_GL_UNISTD_H & _GL_INCLUDING_WINSOCK2_H
From: |
Sam Steingold |
Subject: |
_GL_UNISTD_H & _GL_INCLUDING_WINSOCK2_H |
Date: |
Thu, 25 Aug 2011 12:09:34 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi,
gllib/unistd.h says:
#if 1 && 1 \
&& !defined _GL_INCLUDING_WINSOCK2_H
# define _GL_INCLUDING_WINSOCK2_H
# include <winsock2.h>
# undef _GL_INCLUDING_WINSOCK2_H
#endif
#if !defined _GL_UNISTD_H && !defined _GL_INCLUDING_WINSOCK2_H
#define _GL_UNISTD_H
so when compiling with i686-pc-mingw32-gcc _GL_INCLUDING_WINSOCK2_H is
undef'ed and so _GL_UNISTD_H is __NOT__ defined thus I get
.../modules/rawsock/rawsock.c:691:3: warning: implicit declaration of function
`close_used_without_including_unistd_h'
why?
--
Sam Steingold (http://sds.podval.org/) on CentOS release 5.6 (Final) X
11.0.60900031
http://openvotingconsortium.org http://truepeace.org http://www.memritv.org
http://mideasttruth.com http://ffii.org http://iris.org.il http://camera.org
What garlic is to food, insanity is to art.
- _GL_UNISTD_H & _GL_INCLUDING_WINSOCK2_H,
Sam Steingold <=