Re: 4.1.14 compile error on FIONREAD

This is a discussion on Re: 4.1.14 compile error on FIONREAD within the IPFilter forums, part of the System Security and Security Related category; Darren Reed wrote: > Do the diffs below do the trick? .... > diff -c -r2.243.2.86 fil.c &...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-19-2006
Hans Werner Strube
 
Posts: n/a
Default Re: 4.1.14 compile error on FIONREAD

Darren Reed wrote:
> Do the diffs below do the trick?

....
> diff -c -r2.243.2.86 fil.c
> *** fil.c 1 Sep 2006 14:09:00 -0000 2.243.2.86
> --- fil.c 18 Oct 2006 11:32:36 -0000
> ***************
> *** 32,37 ****
> --- 32,43 ----
> #else
> # include <sys/ioctl.h>
> #endif
> + #if SOLARIS

....

No, because SOLARIS is not defined in this place. Either use SOLARIS2 instead
or move the 6-line insertion after #include "netinet/ip_compat.h".

And the bug in ip_fil_solaris.c reported by "Summum Bonum" regarding
cp->cr_uid still remains. This is fixed by the following:
--- ip_fil_solaris.c.ORI Mon Sep 25 12:21:35 2006
+++ ip_fil_solaris.c Thu Oct 19 12:19:55 2006
@@ -16,7 +16,11 @@
#include <sys/ioctl.h>
#include <sys/filio.h>
#include <sys/systm.h>
+#if SOLARIS2 >= 10
+#include <sys/cred_impl.h>
+#else
#include <sys/cred.h>
+#endif
#include <sys/ddi.h>
#include <sys/sunddi.h>
#include <sys/ksynch.h>
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0