diff options
Diffstat (limited to 'ACE/apps/drwho/global.h')
-rw-r--r-- | ACE/apps/drwho/global.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ACE/apps/drwho/global.h b/ACE/apps/drwho/global.h index c6713f0063e..e81e25050d2 100644 --- a/ACE/apps/drwho/global.h +++ b/ACE/apps/drwho/global.h @@ -21,6 +21,7 @@ #define _GLOBAL_H #include "ace/config-all.h" +#include "ace/Basic_Types.h" #if !defined (ACE_LACKS_PRAGMA_ONCE) # pragma once @@ -44,8 +45,8 @@ enum #define RWHODIR "/usr/spool/rwho" // Macros for handling message types. -#define GET_PACKET_TYPE(P) (ntohs (*((short *) P))) -#define SET_PACKET_TYPE(P,T) ((*(short *) P) = ntohs (T)) +#define GET_PACKET_TYPE(P) (ACE_NTOHS (*((short *) P))) +#define SET_PACKET_TYPE(P,T) ((*(short *) P) = ACE_NTOHS (T)) #define SKIP_PACKET_TYPE(P) ((P) + sizeof (short)) #define SUBTRACT_PACKET_TYPE(L) ((L) - sizeof (short)) |