mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Check each _PATH_* define individually (Solaris has paths.h but not all of the
defines). From Eric N Vander Weele.
This commit is contained in:
		
							
								
								
									
										29
									
								
								compat.h
									
									
									
									
									
								
							
							
						
						
									
										29
									
								
								compat.h
									
									
									
									
									
								
							@@ -61,12 +61,31 @@ void	warn(const char *, ...);
 | 
				
			|||||||
void	warnx(const char *, ...);
 | 
					void	warnx(const char *, ...);
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef HAVE_PATHS_H
 | 
					#ifdef HAVE_PATHS_H
 | 
				
			||||||
#define	_PATH_BSHELL	"/bin/sh"
 | 
					#include <paths.h>
 | 
				
			||||||
#define	_PATH_TMP	"/tmp/"
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef _PATH_BSHELL
 | 
				
			||||||
 | 
					#define _PATH_BSHELL	"/bin/sh"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef _PATH_TMP
 | 
				
			||||||
 | 
					#define _PATH_TMP	"/tmp/"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef _PATH_DEVNULL
 | 
				
			||||||
#define _PATH_DEVNULL	"/dev/null"
 | 
					#define _PATH_DEVNULL	"/dev/null"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef _PATH_TTY
 | 
				
			||||||
#define _PATH_TTY	"/dev/tty"
 | 
					#define _PATH_TTY	"/dev/tty"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef _PATH_DEV
 | 
				
			||||||
#define _PATH_DEV	"/dev/"
 | 
					#define _PATH_DEV	"/dev/"
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#ifndef _PATH_DEFPATH
 | 
				
			||||||
#define _PATH_DEFPATH	"/usr/bin:/bin"
 | 
					#define _PATH_DEFPATH	"/usr/bin:/bin"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -98,10 +117,6 @@ void	warnx(const char *, ...);
 | 
				
			|||||||
#include "compat/bitstring.h"
 | 
					#include "compat/bitstring.h"
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef HAVE_PATHS_H
 | 
					 | 
				
			||||||
#include <paths.h>
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#ifdef HAVE_LIBUTIL_H
 | 
					#ifdef HAVE_LIBUTIL_H
 | 
				
			||||||
#include <libutil.h>
 | 
					#include <libutil.h>
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user