Fix opendir problem when statically linked due to a missing initialization of the mutex field within DIR struct. When linked dynamically instead, __pthread_mutex_init will initialize the mutex itself. Without this fix, any call to readdir will stuck forever trying to acquire the mutex.
Fix opendir problem when statically linked due to a missing
initialization of the mutex field within DIR struct.
When linked dynamically instead, __pthread_mutex_init will
initialize the mutex itself. Without this fix, any call to
readdir will stuck forever trying to acquire the mutex.

Signed-off-by: Carmelo Amoroso <532378793705a04edd56deb76ad8c0442834d55d@st.com>

hwoarang/uClibc,mephi42/uClibc,kraj/uclibc-ng,ndmsystems/uClibc,kraj/uClibc,gittup/uClibc,m-labs/uclibc-lm32,hwoarang/uClibc,brgl/uclibc-ng,groundwater/uClibc,hjl-tools/uClibc,ffainelli/uClibc,skristiansson/uClibc-or1k,ysat0/uClibc,hwoarang/uClibc,atgreen/uClibc-moxie,hjl-tools/uClibc,ndmsystems/uClibc,hjl-tools/uClibc,kraj/uClibc,m-labs/uclibc-lm32,skristiansson/uClibc-or1k,brgl/uclibc-ng,kraj/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,majek/uclibc-vx32,groundwater/uClibc,OpenInkpot-archive/iplinux-uclibc,brgl/uclibc-ng,mephi42/uClibc,mephi42/uClibc,czankel/xtensa-uclibc,brgl/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,waweber/uclibc-clang,skristiansson/uClibc-or1k,ddcc/klee-uclibc-0.9.33.2,OpenInkpot-archive/iplinux-uclibc,wbx-github/uclibc-ng,OpenInkpot-archive/iplinux-uclibc,kraj/uclibc-ng,foss-xtensa/uClibc,czankel/xtensa-uclibc,ndmsystems/uClibc,czankel/xtensa-uclibc,foss-for-synopsys-dwc-arc-processors/uClibc,atgreen/uClibc-moxie,hwoarang/uClibc,wbx-github/uclibc-ng,atgreen/uClibc-moxie,foss-for-synopsys-dwc-arc-processors/uClibc,gittup/uClibc,waweber/uclibc-clang,ffainelli/uClibc,ysat0/uClibc,ffainelli/uClibc,hjl-tools/uClibc,gittup/uClibc,kraj/uclibc-ng,wbx-github/uclibc-ng,ffainelli/uClibc,majek/uclibc-vx32,m-labs/uclibc-lm32,groundwater/uClibc,ysat0/uClibc,gittup/uClibc,wbx-github/uclibc-ng,waweber/uclibc-clang,groundwater/uClibc,ffainelli/uClibc,ddcc/klee-uclibc-0.9.33.2,kraj/uClibc,atgreen/uClibc-moxie,foss-for-synopsys-dwc-arc-processors/uClibc,mephi42/uClibc,ddcc/klee-uclibc-0.9.33.2,majek/uclibc-vx32,foss-xtensa/uClibc,kraj/uclibc-ng,m-labs/uclibc-lm32,majek/uclibc-vx32,groundwater/uClibc,hjl-tools/uClibc,czankel/xtensa-uclibc,foss-xtensa/uClibc,ysat0/uClibc,foss-xtensa/uClibc,skristiansson/uClibc-or1k,ddcc/klee-uclibc-0.9.33.2,waweber/uclibc-clang,ndmsystems/uClibc