Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

hardware-intel-libsensors: Commit

hardware/intel/libsensors


Commit MetaInfo

Revision9e3bf320c3743b81b9260eff7ed78082999bc612 (tree)
Zeit2018-01-22 12:35:04
AutorMauro Rossi <issor.oruam@gmai...>
CommiterChih-Wei Huang

Log Message

activity: fix build error by including <errno.h>

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.

Ändern Zusammenfassung

Diff

--- a/activity.c
+++ b/activity.c
@@ -22,7 +22,7 @@
2222 #include <sys/types.h>
2323 #include <sys/socket.h>
2424 #include <sys/un.h>
25-
25+#include <errno.h>
2626 #include <hardware/activity_recognition.h>
2727 #include <hardware/sensors.h>
2828 #include <utils/Log.h>
Show on old repository browser