--- ./src/debug.h Fri Feb 21 14:17:00 2003 +++ ../snort-1.9.1/./src/debug.h Thu Mar 6 19:02:40 2003 @@ -66,6 +66,10 @@ #endif /* DEBUG */ +#ifdef __sgi +#define inline __inline +#endif + #ifdef DEBUG #define DEBUG_WRAP(code) code --- ./src/parser.c Sat Nov 2 22:46:14 2002 +++ ../snort-1.9.1/./src/parser.c Thu Mar 6 19:57:13 2003 @@ -1469,7 +1469,7 @@ otn_tmp->rtn = rtn_tmp; /* find the start of the options block */ - idx = index(rule, '('); + idx = strchr(rule, '('); i = 0; if(idx != NULL) @@ -2476,7 +2476,7 @@ char *write; /* figure out where the message starts */ - ptr = index(msg, '"'); + ptr = strchr(msg, '"'); if(ptr == NULL) { @@ -2485,7 +2485,7 @@ else ptr++; - end = index(ptr, '"'); + end = strchr(ptr, '"'); if(end != NULL) *end = 0; @@ -2556,7 +2556,7 @@ char *eptr; /* grab everything between the starting " and the end one */ - sptr = index(filename, '"'); + sptr = strchr(filename, '"'); eptr = strrchr(filename, '"'); if(sptr != NULL && eptr != NULL) --- ./src/detection-plugins/sp_pattern_match.c Sat Nov 2 22:46:14 2002 +++ ../snort-1.9.1/./src/detection-plugins/sp_pattern_match.c Thu Mar 6 19:21:35 2003 @@ -514,7 +514,7 @@ data++; /* grab everything between the starting " and the end one */ - sptr = index(data, '"'); + sptr = strchr(data, '"'); eptr = strrchr(data, '"'); if(sptr != NULL && eptr != NULL) @@ -957,7 +957,7 @@ } /* find the start of the data */ - start_ptr = index(rule, '"'); + start_ptr = strchr(rule, '"'); if(start_ptr == NULL) { --- ./src/detection-plugins/sp_tcp_win_check.c Mon May 13 22:14:07 2002 +++ ../snort-1.9.1/./src/detection-plugins/sp_tcp_win_check.c Thu Mar 6 19:50:22 2003 @@ -150,11 +150,11 @@ { if(index(data,(int)'x')) { - win_size = (u_int16_t) strtol((index(data, (int)'x')+1), NULL, 16); + win_size = (u_int16_t) strtol((strchr(data, (int)'x')+1), NULL, 16); } else { - win_size = (u_int16_t) strtol((index(data, (int)'X')+1), NULL, 16); + win_size = (u_int16_t) strtol((strchr(data, (int)'X')+1), NULL, 16); } }