diff options
author | Gerald Combs <gerald@wireshark.org> | 2020-01-14 14:05:33 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2020-01-14 22:24:24 +0000 |
commit | 116d381ea4f77f4aa4091289aad0754a21aab214 (patch) | |
tree | b01991222805030dedbef6fbb29ebda393e8067b /wiretap/mp4.c | |
parent | 62276f79a22fd925e270741fd797aa4720eb6105 (diff) |
wiretap: Fix mp4.c compilation.
Include string.h as suggested by clang:
../wiretap/mp4.c:33:4: error: implicitly declaring library function 'memcmp' with type 'int (const void *, const void *, unsigned long)' [-Werror,-Wimplicit-function-declaration]
memcmp(magic_buf + 4, mp4_magic, sizeof (mp4_magic)))
^
../wiretap/mp4.c:33:4: note: include the header <string.h> or explicitly provide a declaration for 'memcmp'
Change-Id: I2369ad140f95ca10f22c176b9e2646950b1a8f65
Reviewed-on: https://code.wireshark.org/review/35814
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'wiretap/mp4.c')
-rw-r--r-- | wiretap/mp4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wiretap/mp4.c b/wiretap/mp4.c index 4e1fc86c9a..25a811e270 100644 --- a/wiretap/mp4.c +++ b/wiretap/mp4.c @@ -9,6 +9,8 @@ #include "mp4.h" +#include <string.h> + #include "file_wrappers.h" #include "wtap-int.h" |