[Snort-users] snort-1.9.0beta5 fails to build on HP-UX 10.20

Dirk Geschke Dirk_Geschke at ...1344...
Fri Aug 16 14:32:31 EDT 2002


Hi,

> You're right, because in /usr/include/sys/rw_lock.h there is:
> 
> ...
> 113 #ifndef TRUE
> 114 #define TRUE    1
> 115 #define FALSE   0
> 116 #else
> 117 #if ((TRUE != 1) || (FALSE != 0))
> 118 This is probably not a good thing....
> 119 #endif
> 120 #endif /* TRUE */
> 121
> 122 #endif /* _RW_LOCK_INCLUDED */
> 
> so I made this:
> #if ((TRUE != 1) || (FALSE != 0))
> #define TRUE    1
> #define FALSE   0
> /* This is probably not a good thing.... */
> #endif

I think the main problem is in spp_portscan2.c:

      33 #define TRUE 0
      34 #define FALSE 1

This is not a good choice for this constants...

Best regards

Dirk Geschke
-- 
+------------------------------------------------------------+
| Dr. Dirk Geschke            | E-mail: geschke at ...1344...     |
| Gesellschaft fuer Netzwerk  | Tel.  : +49-(0)-89-991950-31 |
| und Unix Administration mbH | Fax   : +49-(0)-89-991950-99 |
| 85551 Kirchheim / Germany   | Raeter Stra/3e 26            |
+------------------------------------------------------------+






More information about the Snort-users mailing list