OSDN Git Service

activity: fix build error by including <errno.h> android-x86-7.1-r1
authorMauro Rossi <issor.oruam@gmail.com>
Fri, 19 Jan 2018 22:10:39 +0000 (23:10 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 22 Jan 2018 03:35:04 +0000 (11:35 +0800)
commit9e3bf320c3743b81b9260eff7ed78082999bc612
tree0e5cf5e737c549867f3fdd58505c054c7f929794
parent2b340a9c6849f3d53adcb9c76b22a62e7eb1fdc4
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.
activity.c