libdmsg: Forward declare struct iovec for public prototypes.
authorzrj <rimvydas.jasinskas@gmail.com>
Fri, 18 Oct 2019 06:45:09 +0000 (09:45 +0300)
committerzrj <rimvydas.jasinskas@gmail.com>
Thu, 24 Oct 2019 12:20:23 +0000 (15:20 +0300)
commit4eb0aa06f1694d43f17453d3818aa3e1f15c4522
treec767ec4ed8be3cb258236cd3a99941ffe2a91653
parent5280ff777046d06d1f4ab63b824cd2912aaaa962
libdmsg: Forward declare struct iovec for public prototypes.

 This removes the need to include <sys/socket.h> or <sys/uio.h> to use
 the <dmsg.h>.  The dmsg_crypto_encrypt() and dmsg_crypto_decrypt() are
 used locally, maybe worth to internalize.

 While there, remove not needed <sys/uio.h> inclusion from hammer2(8).
lib/libdmsg/dmsg.h
sbin/hammer2/hammer2.h