Changeset 573 for syre/trunk

Show
Ignore:
Timestamp:
04/18/08 18:46:29 (9 months ago)
Author:
conrad
Message:

fix compile errors (from GCC updates over past 10 years ;-)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • syre/trunk/main.c

    r571 r573  
     1/*#define _USE_SIGNAL*/ 
     2 
    13#include <stdio.h> 
    24#include <string.h> 
    35#include <time.h> 
    46#include <unistd.h> 
     7#include <X11/Xlib.h> 
     8 
     9#ifdef _USE_SIGNAL 
    510#include <signal.h> 
    6 #include <X11/Xlib.h> 
     11#include <sys/time.h> 
     12#endif 
    713 
    814#include "syre.h" 
     
    1218 
    1319#define NUM_OVERTONES 16 
    14  
    15 /*#define _USE_SIGNAL*/ 
    1620 
    1721Display *disp; 
     
    5559#ifdef _USE_SIGNAL 
    5660void handler_alarm(int sig) 
     61{    
     62   struct itimerval itv; 
    5763#else 
    5864void tick(void) 
    59 #endif 
    60 {    
    61    struct itimerval itv; 
     65
     66#endif 
    6267   XEvent report; 
    6368   Window proot, pchild; 
     
    466471   int i; 
    467472   Pixmap omap,freshmap; 
    468       struct itimerval itv; 
     473#ifdef _USE_SIGNAL 
     474   struct itimerval itv; 
     475#endif 
    469476    
    470477   srandom(time(NULL)); 
  • syre/trunk/x.c

    r571 r573  
    11#include <stdio.h> 
     2#include <stdlib.h> 
    23#include <string.h> 
    34#include <time.h>