diff options
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/process.c b/src/process.c index 36f5a7d5adb..4a658623077 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -180,7 +180,7 @@ extern Lisp_Object QCfilter; | |||
| 180 | #define SIGCHLD SIGCLD | 180 | #define SIGCHLD SIGCLD |
| 181 | #endif /* SIGCLD */ | 181 | #endif /* SIGCLD */ |
| 182 | 182 | ||
| 183 | extern char *get_operating_system_release (void); | 183 | extern const char *get_operating_system_release (void); |
| 184 | 184 | ||
| 185 | /* Serial processes require termios or Windows. */ | 185 | /* Serial processes require termios or Windows. */ |
| 186 | #if defined (HAVE_TERMIOS) || defined (WINDOWSNT) | 186 | #if defined (HAVE_TERMIOS) || defined (WINDOWSNT) |
| @@ -3033,7 +3033,8 @@ usage: (make-network-process &rest ARGS) */) | |||
| 3033 | #ifdef HAVE_GETADDRINFO | 3033 | #ifdef HAVE_GETADDRINFO |
| 3034 | struct addrinfo ai, *res, *lres; | 3034 | struct addrinfo ai, *res, *lres; |
| 3035 | struct addrinfo hints; | 3035 | struct addrinfo hints; |
| 3036 | char *portstring, portbuf[128]; | 3036 | const char *portstring; |
| 3037 | char portbuf[128]; | ||
| 3037 | #else /* HAVE_GETADDRINFO */ | 3038 | #else /* HAVE_GETADDRINFO */ |
| 3038 | struct _emacs_addrinfo | 3039 | struct _emacs_addrinfo |
| 3039 | { | 3040 | { |
| @@ -5415,7 +5416,7 @@ send_process_trap (int ignore) | |||
| 5415 | This function can evaluate Lisp code and can garbage collect. */ | 5416 | This function can evaluate Lisp code and can garbage collect. */ |
| 5416 | 5417 | ||
| 5417 | static void | 5418 | static void |
| 5418 | send_process (volatile Lisp_Object proc, unsigned char *volatile buf, | 5419 | send_process (volatile Lisp_Object proc, const unsigned char *volatile buf, |
| 5419 | volatile int len, volatile Lisp_Object object) | 5420 | volatile int len, volatile Lisp_Object object) |
| 5420 | { | 5421 | { |
| 5421 | /* Use volatile to protect variables from being clobbered by longjmp. */ | 5422 | /* Use volatile to protect variables from being clobbered by longjmp. */ |
| @@ -7423,7 +7424,7 @@ init_process (void) | |||
| 7423 | processes. As such, we only change the default value. */ | 7424 | processes. As such, we only change the default value. */ |
| 7424 | if (initialized) | 7425 | if (initialized) |
| 7425 | { | 7426 | { |
| 7426 | char *release = get_operating_system_release (); | 7427 | const char *release = get_operating_system_release (); |
| 7427 | if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION | 7428 | if (!release || !release[0] || (release[0] < MIN_PTY_KERNEL_VERSION |
| 7428 | && release[1] == '.')) { | 7429 | && release[1] == '.')) { |
| 7429 | Vprocess_connection_type = Qnil; | 7430 | Vprocess_connection_type = Qnil; |