From 9e3bf320c3743b81b9260eff7ed78082999bc612 Mon Sep 17 00:00:00 2001 From: Mauro Rossi Date: Fri, 19 Jan 2018 23:10:39 +0100 Subject: [PATCH] activity: fix build error by including Fixes the following building errors: hardware/intel/libsensors/activity.c:314:48: error: use of undeclared identifier 'errno' ALOGE("Error %s creating socket\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:320:47: error: use of undeclared identifier 'errno' ALOGE("Error %s binding socket\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:326:66: error: use of undeclared identifier 'errno' ALOGW("Error %s setting socket to listening state\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:349:54: error: use of undeclared identifier 'errno' ALOGE("Error %s accepting connection\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:355:65: error: use of undeclared identifier 'errno' ALOGE("Error %s in receiving message, conn = %d\n", strerror(errno), conn); ^ hardware/intel/libsensors/activity.c:508:62: error: use of undeclared identifier 'errno' fprintf(stderr, "Error \"%s\" creating socket\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:509:10: error: use of undeclared identifier 'errno' return errno; ^ hardware/intel/libsensors/activity.c:514:67: error: use of undeclared identifier 'errno' fprintf(stderr, "Error \"%s\" connecting to server\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:515:10: error: use of undeclared identifier 'errno' return errno; ^ hardware/intel/libsensors/activity.c:520:72: error: use of undeclared identifier 'errno' fprintf(stderr, "Error \"%s\" sending message to server\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:521:10: error: use of undeclared identifier 'errno' return errno; ^ hardware/intel/libsensors/activity.c:526:73: error: use of undeclared identifier 'errno' fprintf(stderr, "Error \"%s\" getting answer from server\n", strerror(errno)); ^ hardware/intel/libsensors/activity.c:527:10: error: use of undeclared identifier 'errno' return errno; ^ 13 errors generated. --- activity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity.c b/activity.c index c263ed7..8523bc2 100644 --- a/activity.c +++ b/activity.c @@ -22,7 +22,7 @@ #include #include #include - +#include #include #include #include -- 2.11.0