Mercurial > hg > xemacs-beta
comparison src/sysdep.c @ 5827:4d7032d36975
Allow building --without-tls on the Windows native platform
author | Vin Shelton <acs@xemacs.org> |
---|---|
date | Mon, 10 Nov 2014 13:43:46 -0500 |
parents | b3824b7f5627 |
children | e2fae7783046 |
comparison
equal
deleted
inserted
replaced
5826:98681721a588 | 5827:4d7032d36975 |
---|---|
186 /* For AIX: Apparently need this for non-blocking reads on sockets. | 186 /* For AIX: Apparently need this for non-blocking reads on sockets. |
187 It seems that O_NONBLOCK applies only to FIFOs? From | 187 It seems that O_NONBLOCK applies only to FIFOs? From |
188 lowry@watson.ibm.com (Andy Lowry). */ | 188 lowry@watson.ibm.com (Andy Lowry). */ |
189 /* #### Should this be conditionalized on FIONBIO? */ | 189 /* #### Should this be conditionalized on FIONBIO? */ |
190 #if defined (STRIDE) || (defined (pfa) && defined (HAVE_PTYS)) || defined (AIX) | 190 #if defined (STRIDE) || (defined (pfa) && defined (HAVE_PTYS)) || defined (AIX) |
191 #if !defined(WIN32_NATIVE) | |
191 { | 192 { |
192 int one = 1; | 193 int one = 1; |
193 ioctl (fd, FIONBIO, &one); | 194 ioctl (fd, FIONBIO, &one); |
194 } | 195 } |
196 #endif | |
195 #endif | 197 #endif |
196 | 198 |
197 #ifdef F_SETFL | 199 #ifdef F_SETFL |
198 fcntl (fd, F_SETFL, O_NONBLOCK); | 200 fcntl (fd, F_SETFL, O_NONBLOCK); |
199 #endif | 201 #endif |