… | … | ||
---|---|---|---|
24 | 24 | ||
25 | /* | 25 | /* |
26 | * Try to be self-contained except for the above autoconfig'd defines | 26 | * Try to be self-contained except for the above autoconfig'd defines |
27 | */ | 27 | */ |
28 | 28 | ||
29 | #if 0 | ||
30 | #ifdef HAVE_GETPT | ||
31 | # define _GNU_SOURCE | ||
32 | #endif | ||
33 | #endif | ||
34 | |||
29 | #include <stdio.h> | 35 | #include <cstdio> |
30 | #ifdef HAVE_STDLIB_H | 36 | #ifdef HAVE_STDLIB_H |
31 | # include <stdlib.h> | 37 | # include <cstdlib> |
32 | #endif | 38 | #endif |
33 | #ifdef HAVE_SYS_TYPES_H | 39 | #ifdef HAVE_SYS_TYPES_H |
34 | # include <sys/types.h> | 40 | # include <sys/types.h> |
35 | #endif | 41 | #endif |
36 | #ifdef HAVE_UNISTD_H | 42 | #ifdef HAVE_UNISTD_H |
37 | # include <unistd.h> | 43 | # include <unistd.h> |
38 | #endif | 44 | #endif |
39 | #if defined(HAVE_STRING_H) | 45 | #if defined(HAVE_STRING_H) |
40 | # include <string.h> | 46 | # include <cstring> |
41 | #endif | 47 | #endif |
42 | #ifdef HAVE_FCNTL_H | 48 | #ifdef HAVE_FCNTL_H |
43 | # include <fcntl.h> | 49 | # include <fcntl.h> |
44 | #endif | 50 | #endif |
45 | #ifdef HAVE_SYS_IOCTL_H | 51 | #ifdef HAVE_SYS_IOCTL_H |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |