hello,
I am looking in plugin implementation to have deep understand about it. my objective is to implement the "sendmsg" function.
i was able to mange it but when i am compiling i got error message tell me that the " struct msghdr and iovec" were defined twice ! .
I add the the definition of struct msghdr and struct iovec in /include /lwip/lwip/sockets.h and they are already defined in /libc/sys/socket.h .
i am really confused since there are many data types defined in the both headers (e.g sockadd) and libc_lwip was never complained !
best,
Hello Mohammad,
the libc_lwip plugin handles the multiple definition problem by renaming the lwip functions at the top of 'plugin.cc'. For your new types you might need to add lines like
#define msghdr lwip_msghdr
and
#undef msghdr
at the locations where this is already done for other types like 'sockaddr'.
Regards, Christian
Dear Christian, Thank you very much.
2015-07-13 6:08 GMT-08:00 Christian Prochaska < christian.prochaska@...1...>:
Hello Mohammad,
the libc_lwip plugin handles the multiple definition problem by renaming the lwip functions at the top of 'plugin.cc'. For your new types you might need to add lines like
#define msghdr lwip_msghdr
and
#undef msghdr
at the locations where this is already done for other types like 'sockaddr'.
Regards, Christian
Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ genode-main mailing list genode-main@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/genode-main