1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

KVM Fixes

1. Added changes to support MacOS
2. Updated Linux KVM, so X11 is dynamically loaded at runtime
This commit is contained in:
Bryan Roe
2019-01-11 11:15:22 -08:00
parent 5bbdbf2e48
commit 83c1435512
7 changed files with 198 additions and 122 deletions

View File

@@ -20,8 +20,8 @@ limitations under the License.
#include <stdio.h>
#include <stdlib.h>
#ifdef __APPLE__
#include "../../libjpeg-turbo/jpeglib.h"
#include "../../libjpeg-turbo/jerror.h"
#include "lib-jpeg-turbo/includes/jpeglib.h"
#include "lib-jpeg-turbo/includes/jerror.h"
#else
#include <jpeglib.h>
#include <jerror.h>
@@ -29,6 +29,9 @@ limitations under the License.
#define MAX_BUFFER 22528 // 22 KiB should be fine.
extern int write_JPEG_buffer (JSAMPLE * image_buffer, int image_width, int image_height, int quality);
typedef void(*JPEG_error_handler)(char *msg);
#endif /* LINUX_COMPRESSION_H_ */
extern int write_JPEG_buffer (JSAMPLE * image_buffer, int image_width, int image_height, int quality);
extern JPEG_error_handler default_JPEG_error_handler;
#endif // LINUX_COMPRESSION_H_