patch to compile tct-1.11 on Red Hat 9

Florin Andrei <[email protected]> 30 Jul 2003 11:02:34 -0700
Newsgroups gmane.comp.security.forensics.tct
Organization SGI
Message-ID <[email protected]>
--=-3lbaZDn+l4x+/o3F4F40
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Attached is a patch to let tct-1.11 compile on Red Hat 9.
Without it, compilation fails within the "file" section.

I believe it will also fix the problem with SuSE posted by Adam Daniel a
couple of weeks ago.

I can't guarantee for the "cleanliness" of the patch, it just makes gcc
happy on my system.

-- 
Florin Andrei

"Never send a human to do a machine's job." - Agent Smith

--=-3lbaZDn+l4x+/o3F4F40
Content-Disposition: attachment; filename=tct-rh9.patch
Content-Type: text/x-patch; name=tct-rh9.patch; charset=ISO-8859-2
Content-Transfer-Encoding: 7bit

diff -ur tct-1.11.old/src/file/file.h tct-1.11/src/file/file.h
--- tct-1.11.old/src/file/file.h	2000-07-30 16:39:20.000000000 -0700
+++ tct-1.11/src/file/file.h	2003-07-30 10:58:09.000000000 -0700
@@ -71,6 +71,7 @@
 };
 
 #include <stdio.h>	/* Include that here, to make sure __P gets defined */
+#include <errno.h>
 
 #ifndef __P
 # if __STDC__ || __cplusplus

--=-3lbaZDn+l4x+/o3F4F40--