X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=apps%2Fs_server.c;h=4d87567a62cc91c2572c4a4f4e22bc67ffb97c7d;hp=64ef2455bcf692b8668bdd555425d2aabf2461ff;hb=0bf23d9b2055223c6e7a1398d2243a65dfa4c30d;hpb=813f256783a678b131a81ed1c8d05b70395a6255 diff --git a/apps/s_server.c b/apps/s_server.c index 64ef2455bc..4d87567a62 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -149,6 +149,14 @@ typedef unsigned int u_int; #include #endif +#ifdef OPENSSL_SYS_WINCE +/* Windows CE incorrectly defines fileno as returning void*, so to avoid problems below... */ +#ifdef fileno +#undef fileno +#endif +#define fileno(a) (int)_fileno(a) +#endif + #if (defined(OPENSSL_SYS_VMS) && __VMS_VER < 70000000) /* FIONBIO used as a switch to enable ioctl, and that isn't in VMS < 7.0 */ #undef FIONBIO