2019-03-20 14:37:12 +01:00
|
|
|
diff -uNr sysroot.orig/usr/include/syslog.h sysroot/usr/include/syslog.h
|
|
|
|
--- sysroot.orig/usr/include/syslog.h 2019-02-12 16:12:24.000000000 +0000
|
|
|
|
+++ sysroot/usr/include/syslog.h 2019-03-20 13:19:44.315965728 +0000
|
2019-12-08 15:23:00 +01:00
|
|
|
@@ -158,4 +158,22 @@
|
|
|
|
*/
|
2019-03-20 14:37:12 +01:00
|
|
|
void vsyslog(int __priority, const char* __fmt, va_list __args) __printflike(2, 0);
|
2015-06-13 01:03:31 +02:00
|
|
|
|
2016-09-22 20:43:21 +02:00
|
|
|
+static __inline__ void android_polyfill_syslog_r(int syslog_priority, void* d, const char* format, ...)
|
2015-06-13 01:03:31 +02:00
|
|
|
+{
|
2019-12-08 15:23:00 +01:00
|
|
|
+ (void) d;
|
|
|
|
+ va_list myargs;
|
|
|
|
+ va_start(myargs, format);
|
|
|
|
+ vsyslog(syslog_priority, format, myargs);
|
|
|
|
+ va_end(myargs);
|
2015-06-13 01:03:31 +02:00
|
|
|
+}
|
|
|
|
+
|
2016-09-22 20:43:21 +02:00
|
|
|
+static __inline__ void android_polyfill_vsyslog_r(int syslog_priority, void* d, const char* fmt, va_list ap)
|
2015-06-13 01:03:31 +02:00
|
|
|
+{
|
2019-12-08 15:23:00 +01:00
|
|
|
+ (void) d;
|
|
|
|
+ vsyslog(syslog_priority, fmt, ap);
|
2015-06-13 01:03:31 +02:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+#define syslog_r android_polyfill_syslog_r
|
|
|
|
+#define vsyslog_r android_polyfill_vsyslog_r
|
|
|
|
+
|
|
|
|
__END_DECLS
|