Author: Dharanendiran <dharanendiran@timesys.com>
Date: Thu, 12 Mar 2020 13:37:29 +0530

Since released versions of uClibc don't support isfdtype().

Modified the sock.c file to fix the below error:
sock.c:55:1: error: static declaration of 'isfdtype' follows non-static declaration
 isfdtype(int fd, int fdtype)
 ^
In file included from ud_socket.h:8:0,
                 from sock.c:40:
/home/timesys/factory/build_armv7l-timesys-linux-uclibcgnueabi/toolchain/include/sys/socket.h:245:12: note: previous declaration of 'isfdtype' was here
 extern int isfdtype (int __fd, int __fdtype) __THROW;

---
 sock.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/sock.c b/sock.c
index 9e04501..7829c41 100644
--- a/sock.c
+++ b/sock.c
@@ -42,6 +42,10 @@
 
 #include "sock.h"
 
+#ifndef HAVE_ISFDTYPE
+#define isfdtype isfdtype_acpid
+#endif
+
 const char *socketfile = ACPID_SOCKETFILE;
 const char *socketgroup;
 mode_t socketmode = ACPID_SOCKETMODE;
-- 
1.9.1

