Header Problem
hello,
I am using 2.6 Ubuntu. So i mentioned in my program #define _USE_BSD_ even though missing header information and getting this error. Can any one help me? Quote:
Code:
#define TCPG_SYN Code:
void tcpg_kill(u_short kport) |
According to man feature_test_macros, there is a _BSD_SOURCE macro, but it doesn't list a _USE_BSD_ macro.
Also, I think a feature test macro should be defined before any other includes. The includes may differ depending on which you used. So some structures may be different then you want because when the include file was read in, _BSD_SOURCE wasn't defined. The netinet/tcp.h header uses __FAVOR_BSD and not _USE_BSD_ in my version at least. Look at your tcp.h file and see which it uses. Using _BSD_SOURCE will define __USE_BSD. Code:
#ifdef _BSD_SOURCE Code:
/* If _BSD_SOURCE was defined by the user, favor BSD over POSIX. */ |
All times are GMT -5. The time now is 06:48 AM. |