Add portable way to check for the existence of definitions and

apply it to socklen_t.
patch by Dave Yeo, daveryeo telus net

Originally committed as revision 11366 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Dave Yeo
2008-01-01 22:54:35 +00:00
committed by Diego Biurrun
parent c86ec2f4c3
commit 72be9e73ae
2 changed files with 22 additions and 1 deletions

View File

@@ -27,7 +27,7 @@
* miscellaneous OS support macros and functions.
*/
#if defined(__BEOS__) || defined(__INNOTEK_LIBC__) || defined(__DJGPP__)
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif