root/src/noitedit/compat.h

Revision 9cd79790888b6da0ae66f6186b9ec2843f317a3c, 0.8 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

make this work on Solaris, and hopefully don't break anything, refs #32

  • Property mode set to 100644
Line 
1 #ifndef __LIBEDIT_COMPATH_H
2 #define __LIBEDIT_COMPATH_H
3
4 #include "noit_defines.h"
5
6 #ifndef __RCSID
7 #define  __RCSID(x) static const char rcsid[] = x
8 #endif
9 #ifndef __COPYRIGHT
10 #define  __COPYRIGHT(x)
11 #endif
12
13 #ifdef HAVE_SYS_FILIO_H
14 #include <sys/filio.h>
15 #endif
16
17 #ifndef HAVE_VIS_H
18 /* string visual representation - may want to reimplement */
19 #define strvis(d,s,m)   strcpy(d,s)
20 #define strunvis(d,s)   strcpy(d,s)
21 #endif
22
23 #ifndef HAVE_FGETLN
24 #include "noitedit/fgetln.h"
25 #endif
26
27 #ifndef HAVE_ISSETUGID
28 #define issetugid() (getuid()!=geteuid() || getegid()!=getgid())
29 #endif
30
31 #ifndef HAVE_STRLCPY
32 #include "noitedit/strlcpy.h"
33 #endif
34
35 #if HAVE_SYS_CDEFS_H
36 #include <sys/cdefs.h>
37 #endif
38
39 #ifndef __P
40 #ifdef __STDC__
41 #define __P(x)  x
42 #else
43 #define __P(x)  ()
44 #endif
45 #endif
46
47 #endif
Note: See TracBrowser for help on using the browser.