Mercurial > libavformat.hg
comparison os_support.h @ 6118:6780dc315f36 libavformat
Remove support for pre-Haiku, non-POSIX, non-C99 BeOS variants.
BeOS support has been broken for many years and the "maintainer" of the port
has not reacted to countless requests to get the port fixed.
approved by Mans
author | diego |
---|---|
date | Thu, 10 Jun 2010 16:51:14 +0000 |
parents | f23196c73178 |
children | 2e3e76e8ada4 |
comparison
equal
deleted
inserted
replaced
6117:f221641c262a | 6118:6780dc315f36 |
---|---|
43 return 1; | 43 return 1; |
44 #endif | 44 #endif |
45 return 0; | 45 return 0; |
46 } | 46 } |
47 | 47 |
48 #ifdef __BEOS__ | |
49 # include <sys/socket.h> | |
50 # include <netinet/in.h> | |
51 /* not net_server ? */ | |
52 # include <BeBuild.h> | |
53 /* R5 didn't have usleep, fake it. Haiku and Zeta has it now. */ | |
54 # if B_BEOS_VERSION <= B_BEOS_VERSION_5 | |
55 # include <OS.h> | |
56 /* doesn't set errno but that's enough */ | |
57 # define usleep(t) snooze((bigtime_t)(t)) | |
58 # endif | |
59 # ifndef SA_RESTART | |
60 # warning SA_RESTART not implemented; ffserver might misbehave. | |
61 # define SA_RESTART 0 | |
62 # endif | |
63 #endif | |
64 | |
65 #if CONFIG_NETWORK | 48 #if CONFIG_NETWORK |
66 #if !HAVE_SOCKLEN_T | 49 #if !HAVE_SOCKLEN_T |
67 typedef int socklen_t; | 50 typedef int socklen_t; |
68 #endif | 51 #endif |
69 | 52 |