mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
Small fixes to make all programs compile cleanly with libc6.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@168 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
fefbf31867
commit
33269d5252
7 files changed
+18
-4
No files matched your search
@@ -133,6 +133,10 @@ CFLAGS += -Wall -Wstrict-prototypes -Wshadow -Wpointer-arith -Wcast-qual \
|
||||
-Wcast-align -Wwrite-strings -Wnested-externs -Winline
|
||||
endif
|
||||
|
||||
ifeq ($(I2C),1)
|
||||
CFLAGS += -DI2C
|
||||
endif
|
||||
|
||||
MODCFLAGS := $(CFLAGS) -D__KERNEL__ -DMODULE -fomit-frame-pointer
|
||||
PROGCFLAGS := $(CFLAGS)
|
||||
ARCFLAGS := $(CFLAGS)
|
||||
@@ -146,10 +150,6 @@ ifeq ($(MODVER),1)
|
||||
MODCFLAGS += -DMODVERSIONS -include /usr/include/linux/modversions.h
|
||||
endif
|
||||
|
||||
ifeq ($(I2C),1)
|
||||
MODCFLAGS += -DI2C
|
||||
endif
|
||||
|
||||
.PHONY: all clean install version package dep
|
||||
|
||||
# Make all the default rule
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
Many, many things. Most notably:
|
||||
|
||||
* Create wait-queues for bus locking instead of pure semaphores, to make
|
||||
it more interactive
|
||||
* Check for block read/writes in smbus-on-i2c emulation code
|
||||
* Merge newest Simon Vogl archive
|
||||
* Merge man-pages
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "general.h"
|
||||
#include "error.h"
|
||||
#include "conf.h"
|
||||
#include "access.h"
|
||||
|
||||
/* These two functions are defined in conf-lex.l */
|
||||
extern int sensors_yylex(void);
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -22,6 +22,11 @@
|
||||
#include <unistd.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
/* To keep glibc2 happy */
|
||||
#ifdef __GLIBC__
|
||||
#include <sys/perm.h>
|
||||
#endif
|
||||
|
||||
char hexchar(int i)
|
||||
{
|
||||
if ((i >= 0) && (i <= 9))
|
||||
|
||||
Reference in new issue
Block a user