remove explicit #include endian.h unfortunately that's not portable. config.h will include the right stuff however.

sync imsg

update imsg

sync imsg-buffer.c original commit from eric@: change the barrier so that fd's are always passed and received with the first byte of the imsg they belong to. idea, tweaks and ok claudio@

tests and compat for imsg