diff options
| author | Jan Djärv | 2013-11-30 14:31:39 +0100 |
|---|---|---|
| committer | Jan Djärv | 2013-11-30 14:31:39 +0100 |
| commit | 8e2d7ef25e3d41639d21fe1e232a277c479946b0 (patch) | |
| tree | e51c42471ba078537d1e953991b3bc61861f9377 /src | |
| parent | f80e1bb62e6e806aa61d69602e0dfbbe7055db10 (diff) | |
| download | emacs-8e2d7ef25e3d41639d21fe1e232a277c479946b0.tar.gz emacs-8e2d7ef25e3d41639d21fe1e232a277c479946b0.zip | |
* gnutls.c (gnutls_audit_log_function): Only declare and define if
HAVE_GNUTLS3.
* xfaces.c (NEAR_SAME_COLOR_THRESHOLD): Move inside HAVE_WINDOW_SYSTEM.
Fixes: debbugs:16001
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/gnutls.c | 6 | ||||
| -rw-r--r-- | src/xfaces.c | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d75324a728b..e8bbc9ab7eb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2013-11-30 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2013-11-30 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * xfaces.c (NEAR_SAME_COLOR_THRESHOLD): Move inside HAVE_WINDOW_SYSTEM. | ||
| 4 | |||
| 5 | * gnutls.c (gnutls_audit_log_function): Only declare and define if | ||
| 6 | HAVE_GNUTLS3 (Bug#16001). | ||
| 7 | |||
| 3 | * xdisp.c (redisplay_internal): Call request_sigio at end_of_redisplay | 8 | * xdisp.c (redisplay_internal): Call request_sigio at end_of_redisplay |
| 4 | if interrupts are deferred (Bug#15801). | 9 | if interrupts are deferred (Bug#15801). |
| 5 | 10 | ||
diff --git a/src/gnutls.c b/src/gnutls.c index 82b2fc8baa4..5a296166cdd 100644 --- a/src/gnutls.c +++ b/src/gnutls.c | |||
| @@ -55,8 +55,10 @@ static Lisp_Object QCgnutls_bootprop_verify_hostname_error; | |||
| 55 | static Lisp_Object QCgnutls_bootprop_callbacks_verify; | 55 | static Lisp_Object QCgnutls_bootprop_callbacks_verify; |
| 56 | 56 | ||
| 57 | static void gnutls_log_function (int, const char *); | 57 | static void gnutls_log_function (int, const char *); |
| 58 | static void gnutls_audit_log_function (gnutls_session_t, const char *); | ||
| 59 | static void gnutls_log_function2 (int, const char*, const char*); | 58 | static void gnutls_log_function2 (int, const char*, const char*); |
| 59 | #ifdef HAVE_GNUTLS3 | ||
| 60 | static void gnutls_audit_log_function (gnutls_session_t, const char *); | ||
| 61 | #endif | ||
| 60 | 62 | ||
| 61 | 63 | ||
| 62 | #ifdef WINDOWSNT | 64 | #ifdef WINDOWSNT |
| @@ -261,6 +263,7 @@ init_gnutls_functions (void) | |||
| 261 | #endif /* !WINDOWSNT */ | 263 | #endif /* !WINDOWSNT */ |
| 262 | 264 | ||
| 263 | 265 | ||
| 266 | #ifdef HAVE_GNUTLS3 | ||
| 264 | /* Function to log a simple audit message. */ | 267 | /* Function to log a simple audit message. */ |
| 265 | static void | 268 | static void |
| 266 | gnutls_audit_log_function (gnutls_session_t session, const char* string) | 269 | gnutls_audit_log_function (gnutls_session_t session, const char* string) |
| @@ -270,6 +273,7 @@ gnutls_audit_log_function (gnutls_session_t session, const char* string) | |||
| 270 | message ("gnutls.c: [audit] %s", string); | 273 | message ("gnutls.c: [audit] %s", string); |
| 271 | } | 274 | } |
| 272 | } | 275 | } |
| 276 | #endif | ||
| 273 | 277 | ||
| 274 | /* Function to log a simple message. */ | 278 | /* Function to log a simple message. */ |
| 275 | static void | 279 | static void |
diff --git a/src/xfaces.c b/src/xfaces.c index b6e0abc2f96..8a74c92b10d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -912,8 +912,6 @@ load_pixmap (struct frame *f, Lisp_Object name) | |||
| 912 | X Colors | 912 | X Colors |
| 913 | ***********************************************************************/ | 913 | ***********************************************************************/ |
| 914 | 914 | ||
| 915 | #define NEAR_SAME_COLOR_THRESHOLD 30000 | ||
| 916 | |||
| 917 | /* Parse RGB_LIST, and fill in the RGB fields of COLOR. | 915 | /* Parse RGB_LIST, and fill in the RGB fields of COLOR. |
| 918 | RGB_LIST should contain (at least) 3 lisp integers. | 916 | RGB_LIST should contain (at least) 3 lisp integers. |
| 919 | Return 0 if there's a problem with RGB_LIST, otherwise return 1. */ | 917 | Return 0 if there's a problem with RGB_LIST, otherwise return 1. */ |
| @@ -1265,6 +1263,8 @@ load_color (struct frame *f, struct face *face, Lisp_Object name, | |||
| 1265 | 1263 | ||
| 1266 | #ifdef HAVE_WINDOW_SYSTEM | 1264 | #ifdef HAVE_WINDOW_SYSTEM |
| 1267 | 1265 | ||
| 1266 | #define NEAR_SAME_COLOR_THRESHOLD 30000 | ||
| 1267 | |||
| 1268 | /* Load colors for face FACE which is used on frame F. Colors are | 1268 | /* Load colors for face FACE which is used on frame F. Colors are |
| 1269 | specified by slots LFACE_BACKGROUND_INDEX and LFACE_FOREGROUND_INDEX | 1269 | specified by slots LFACE_BACKGROUND_INDEX and LFACE_FOREGROUND_INDEX |
| 1270 | of ATTRS. If the background color specified is not supported on F, | 1270 | of ATTRS. If the background color specified is not supported on F, |