[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RFC: lsof dirty hack



Hi,

while having a quick look at lsof, it looks like it has some FreeBSD
support, but duplicating it to support our kernels + our userland
might be a bit boring. In order to have it built “easily” (= without
too much hassle), I've left the “./Configure -n linux” in debian/rules
and only applied to below-quoted patch to get rid of the missing
includes:

---8<-8<-8<---
--- a/dialects/linux/dlsof.h
+++ b/dialects/linux/dlsof.h
@@ -66,7 +66,9 @@
 #include <sys/sysmacros.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
+#if defined(__linux__)
 #include <linux/if_ether.h>
+#endif
 
 
 /*
--->8->8->8---

It'd be nice if you could test a build with that tiny workaround and
tell me whether it's worth asking for an upload in that
state. /proc-based files get some “no such file or directory”, but
others might become useful when it comes to debugging other programs,
so we might want to have an half-functional lsof instead of none at
all.

Mraw,
KiBi.

Attachment: signature.asc
Description: Digital signature


Reply to: