Skip to content

Commit 9daf9da

Browse files
authored
fix: update libaom POSIX_C_SOURCE patch context for current CMakeLists.txt (#1223)
2 parents 5b377d8 + 8448e67 commit 9daf9da

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/globals/patch/libaom_posix_implict.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ https://bugs.gentoo.org/869419
33
POSIX_C_SOURCE is needed for ftello.
44
--- a/CMakeLists.txt
55
+++ b/CMakeLists.txt
6-
@@ -269,6 +269,7 @@ add_library(aom_rtcd OBJECT ${AOM_RTCD_SOURCES})
7-
add_dependencies(aom_rtcd aom_version)
6+
@@ -311,6 +311,7 @@ endif()
87

9-
if(ENABLE_EXAMPLES)
8+
if(ENABLE_APPS)
9+
# Only used by aomenc.
1010
+ add_definitions(-D_POSIX_C_SOURCE=200112L)
1111
add_library(aom_encoder_stats OBJECT ${AOM_ENCODER_STATS_SOURCES})
1212
set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_encoder_stats)

0 commit comments

Comments
 (0)