libdockapp: Add #include <time.h> to basic example.

Otherwise, we get the following compiler warning:
basic.c: In function ‘main’:
basic.c:111:2: warning: implicit declaration of function ‘time’ [-Wimplicit-function-declaration]
  srandom(time(NULL));
  ^
This commit is contained in:
Doug Torrance 2014-11-28 10:22:53 -06:00 committed by Carlos R. Mafra
parent b22f634ce2
commit 16088c0c34

View file

@ -9,6 +9,7 @@
/* also includes Xlib, Xresources, XPM, stdlib and stdio */ /* also includes Xlib, Xresources, XPM, stdlib and stdio */
#include <dockapp.h> #include <dockapp.h>
#include <time.h>
/* include the pixmap to use */ /* include the pixmap to use */
#include "ball_red.xpm" #include "ball_red.xpm"