compile on NETWARE
This commit is contained in:
		
							parent
							
								
									7345b920ae
								
							
						
					
					
						commit
						e44f7a857f
					
				
							
								
								
									
										13
									
								
								src/sigar.c
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								src/sigar.c
									
									
									
									
									
								
							@ -766,6 +766,8 @@ struct utmp {
 | 
				
			|||||||
    char ut_host[UT_HOSTSIZE];	
 | 
					    char ut_host[UT_HOSTSIZE];	
 | 
				
			||||||
    long ut_addr;	
 | 
					    long ut_addr;	
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					#elif defined(NETWARE)
 | 
				
			||||||
 | 
					/*XXX*/
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
#  include <utmp.h>
 | 
					#  include <utmp.h>
 | 
				
			||||||
#  ifdef UTMP_FILE
 | 
					#  ifdef UTMP_FILE
 | 
				
			||||||
@ -779,6 +781,8 @@ struct utmp {
 | 
				
			|||||||
#  define ut_user ut_name
 | 
					#  define ut_user ut_name
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef NETWARE
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define WHOCPY(dest, src) \
 | 
					#define WHOCPY(dest, src) \
 | 
				
			||||||
    SIGAR_SSTRCPY(dest, src); \
 | 
					    SIGAR_SSTRCPY(dest, src); \
 | 
				
			||||||
    if (sizeof(src) < sizeof(dest)) \
 | 
					    if (sizeof(src) < sizeof(dest)) \
 | 
				
			||||||
@ -825,7 +829,9 @@ static int sigar_who_utmp(sigar_t *sigar,
 | 
				
			|||||||
    return SIGAR_OK;
 | 
					    return SIGAR_OK;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef WIN32
 | 
					#endif /* NETWARE */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if defined(WIN32)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <lm.h>
 | 
					#include <lm.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1032,6 +1038,9 @@ SIGAR_DECLARE(int) sigar_resource_limit_get(sigar_t *sigar,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    return SIGAR_OK;
 | 
					    return SIGAR_OK;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#elif defined(NETWARE)
 | 
				
			||||||
 | 
					/*XXX*/
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int sigar_who_list_get(sigar_t *sigar,
 | 
					int sigar_who_list_get(sigar_t *sigar,
 | 
				
			||||||
@ -1228,7 +1237,7 @@ void sigar_hwaddr_format(char *buff, unsigned char *ptr)
 | 
				
			|||||||
            (ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377));
 | 
					            (ptr[3] & 0377), (ptr[4] & 0377), (ptr[5] & 0377));
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(WIN32) && !defined(DARWIN) && !defined(__FreeBSD__)
 | 
					#if !defined(WIN32) && !defined(DARWIN) && !defined(__FreeBSD__) && !defined(NETWARE)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* XXX: prolly will be moving these stuffs into os_net.c */
 | 
					/* XXX: prolly will be moving these stuffs into os_net.c */
 | 
				
			||||||
#include <sys/socket.h>
 | 
					#include <sys/socket.h>
 | 
				
			||||||
 | 
				
			|||||||
@ -142,7 +142,9 @@ SIGAR_DECLARE(int)sigar_file_attrs_mode_get(sigar_uint64_t permissions)
 | 
				
			|||||||
#define IS_DOTDIR(dir) \
 | 
					#define IS_DOTDIR(dir) \
 | 
				
			||||||
    ((dir[0] == '.') && (!dir[1] || ((dir[1] == '.') && !dir[2])))
 | 
					    ((dir[0] == '.') && (!dir[1] || ((dir[1] == '.') && !dir[2])))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef WIN32
 | 
					#if defined(NETWARE)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#elif defined(WIN32)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <accctrl.h>
 | 
					#include <accctrl.h>
 | 
				
			||||||
#include <aclapi.h>
 | 
					#include <aclapi.h>
 | 
				
			||||||
 | 
				
			|||||||
@ -406,7 +406,7 @@ void sigar_cpu_model_adjust(sigar_t *sigar, sigar_cpu_info_t *info)
 | 
				
			|||||||
    strcpy(info->model, ptr);
 | 
					    strcpy(info->model, ptr);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef WIN32
 | 
					#if !defined(WIN32) && !defined(NETWARE)
 | 
				
			||||||
#include <netdb.h>
 | 
					#include <netdb.h>
 | 
				
			||||||
#include <rpc/rpc.h>
 | 
					#include <rpc/rpc.h>
 | 
				
			||||||
#include <rpc/pmap_prot.h>
 | 
					#include <rpc/pmap_prot.h>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user