Fix linker error, ./.libs/libxorg.a(xf86i2c.o): In function `I2CUDelay': /opt/exp/xorg/xserver/hw/xfree86/i2c/xf86i2c.c:54: undefined reference to `X_GETTIMEOFDAY' /opt/exp/xorg/xserver/hw/xfree86/i2c/xf86i2c.c:59: undefined reference to `X_GETTIMEOFDAY' --- hw/xfree86/i2c/xf86i2c.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/xfree86/i2c/xf86i2c.c b/hw/xfree86/i2c/xf86i2c.c index 59832d6..bd8782e 100644 --- a/hw/xfree86/i2c/xf86i2c.c +++ b/hw/xfree86/i2c/xf86i2c.c @@ -51,12 +51,12 @@ I2CUDelay(I2CBusPtr b, int usec) long diff; if (usec > 0) { - X_GETTIMEOFDAY(&begin); + gettimeofday(&begin, NULL); do { /* It would be nice to use {xf86}usleep, * but usleep (1) takes >10000 usec ! */ - X_GETTIMEOFDAY(&cur); + gettimeofday(&cur, NULL); d_secs = (cur.tv_sec - begin.tv_sec); d_usecs = (cur.tv_usec - begin.tv_usec); diff = d_secs*1000000 + d_usecs; -- 1.6.3.1 _______________________________________________ xorg mailing list xorg@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/xorg