OpenBSD tweaks
This commit is contained in:
		
							parent
							
								
									67323ea91b
								
							
						
					
					
						commit
						49962904ed
					
				@ -24,6 +24,9 @@
 | 
				
			|||||||
#include <sys/socket.h>
 | 
					#include <sys/socket.h>
 | 
				
			||||||
#include <sys/time.h>
 | 
					#include <sys/time.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					#ifdef __OpenBSD__
 | 
				
			||||||
 | 
					#include <netinet/in.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "sigar.h"
 | 
					#include "sigar.h"
 | 
				
			||||||
#include "sigar_private.h"
 | 
					#include "sigar_private.h"
 | 
				
			||||||
@ -939,7 +942,7 @@ static char *getpass(const char *prompt)
 | 
				
			|||||||
#  endif
 | 
					#  endif
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__FreeBSD__) || defined(DARWIN)
 | 
					#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(DARWIN)
 | 
				
			||||||
#  define ut_user ut_name
 | 
					#  define ut_user ut_name
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -1243,7 +1246,8 @@ int sigar_resource_limit_get(sigar_t *sigar,
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if !defined(WIN32) && !defined(DARWIN) && !defined(__FreeBSD__) && !defined(NETWARE)
 | 
					#if !defined(WIN32) && !defined(NETWARE) && \
 | 
				
			||||||
 | 
					    !defined(DARWIN) && !defined(__FreeBSD__) && !defined(__OpenBSD__)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* XXX: prolly will be moving these stuffs into os_net.c */
 | 
					/* XXX: prolly will be moving these stuffs into os_net.c */
 | 
				
			||||||
#include <sys/ioctl.h>
 | 
					#include <sys/ioctl.h>
 | 
				
			||||||
 | 
				
			|||||||
@ -28,6 +28,9 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#ifndef WIN32
 | 
					#ifndef WIN32
 | 
				
			||||||
#include <arpa/inet.h>
 | 
					#include <arpa/inet.h>
 | 
				
			||||||
 | 
					#ifdef __OpenBSD__
 | 
				
			||||||
 | 
					#include <sys/socket.h>
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
#include <pwd.h>
 | 
					#include <pwd.h>
 | 
				
			||||||
#include <grp.h>
 | 
					#include <grp.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user