scrut(1): conditionally include non-POSIX sysexits.h
This commit is contained in:
		
							parent
							
								
									8e38db92c7
								
							
						
					
					
						commit
						919b171400
					
				@ -20,11 +20,13 @@
 | 
			
		||||
#include <stdio.h> /* fprintf(3), stderr, NULL */
 | 
			
		||||
#include <stdlib.h> /* EXIT_FAILURE, EXIT_SUCCESS */
 | 
			
		||||
#include <string.h> /* memset(3), strchr(3) */
 | 
			
		||||
#ifndef EX_USAGE
 | 
			
		||||
#	include <sysexits.h>
 | 
			
		||||
#endif
 | 
			
		||||
#include <unistd.h> /* access(3), getopt(3), F_OK, R_OK, W_OK, X_OK */
 | 
			
		||||
#include <sys/stat.h> /* lstat(3), stat struct, S_ISBLK, S_ISCHR, S_ISDIR,
 | 
			
		||||
                       * S_ISFIFO, S_ISGID, S_ISREG, S_ISLNK, S_ISSOCK,
 | 
			
		||||
                       * S_ISUID, S_ISVTX */
 | 
			
		||||
#include <sysexits.h>
 | 
			
		||||
 | 
			
		||||
static char args[] = "bcdefghkprsuwxLS";
 | 
			
		||||
static char ops[(sizeof args) / (sizeof *args)];
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user