-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2145 from MaxKrummenacher/master
imx-vpuwrap: fix build error
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...timedia/imx-vpuwrap/imx-vpuwrap/0001-vpu_wrapper_hantro_encoder-fix-missing-include.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From a3c2f61649afd05e4bab457370f0b32d7644505c Mon Sep 17 00:00:00 2001 | ||
From: Max Krummenacher <[email protected]> | ||
Date: Mon, 3 Mar 2025 08:24:51 +0000 | ||
Subject: [PATCH] vpu_wrapper_hantro_encoder: fix missing include | ||
|
||
gettimeofday is declared in sys/time.h. Add the include. | ||
|
||
Fixes the build error: | ||
| ../git/vpu_wrapper_hantro_encoder.c:953:3: error: implicit declaration of function 'gettimeofday' [-Wimplicit-function-declaration] | ||
| 953 | gettimeofday (&pObj->tvEnd, NULL); | ||
|
||
Upstream-Status: Pending | ||
Signed-off-by: Max Krummenacher <[email protected]> | ||
--- | ||
vpu_wrapper_hantro_encoder.c | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/vpu_wrapper_hantro_encoder.c b/vpu_wrapper_hantro_encoder.c | ||
index 3819c389320c..a0bdb2f4f6c0 100755 | ||
--- a/vpu_wrapper_hantro_encoder.c | ||
+++ b/vpu_wrapper_hantro_encoder.c | ||
@@ -25,6 +25,7 @@ | ||
#include <string.h> | ||
#include <time.h> | ||
#include <semaphore.h> | ||
+#include <sys/time.h> | ||
|
||
#include "headers/OMX_Video.h" | ||
#include "headers/OMX_VideoExt.h" | ||
-- | ||
2.42.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters