src/shared/util.h: include sys/types.h
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 24 Feb 2022 17:31:04 +0000 (18:31 +0100)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commitb4ebe074e8e50699c71f86b4d02531b3556605d4
tree14befee98d115341bc34301bbfa3f76baeaf2cd9
parent991999ce1b8268f962ff88c9230947859cc7c7e5
src/shared/util.h: include sys/types.h

Include sys/types.h to avoid the following build failure on musl raised
since commit fb57ad9b9d107856e5f1c8135da04ffa2f7a11ac:

In file included from src/shared/queue.c:15:
./src/shared/util.h:106:1: error: unknown type name 'ssize_t';
did you mean 'size_t'?
  106 | ssize_t util_getrandom(void *buf, size_t buflen, unsigned int flags);
      | ^~~~~~~
      | size_t

Fixes:
 - http://autobuild.buildroot.org/results/83eaeb3863040645409f5787fdbdde79385c5257
Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/shared/util.h