[FFmpeg-devel] [PATCH] -D_POSIX_C_SOURCE=200112 and OS/2

Dave Yeo daveryeo
Sat Aug 16 03:28:19 CEST 2008


Hi, with -D_POSIX_C_SOURCE=200112 on OS/2 we get this error,
 >gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -I. 
-I"/usr/src/ffmpeg" -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -fasm 
-std=c99 -fomit-frame-pointer -g -Wall -Wno-switch 
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual 
-Wwrite-strings -O3 -fno-math-errno       -c -o libavformat/os_support.o 
libavformat/os_support.c
libavformat/os_support.c: In function `poll':
libavformat/os_support.c:141: error: storage size of `tv' isn't known
libavformat/os_support.c:141: warning: unused variable `tv'

Fix is to include sys/time.h as in one of the attached patches. Not sure 
if checking for existence of sys/time.h is needed but the autotools 
usually do check.
Dave
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix_c_source_1.diff
Type: text/x-patch
Size: 349 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080815/3510e3ae/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix_c_source_2.diff
Type: text/x-patch
Size: 898 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080815/3510e3ae/attachment-0001.bin>



More information about the ffmpeg-devel mailing list