*** ./src/winwidget.c.ORIG Fri Oct 8 15:11:04 2010 --- ./src/winwidget.c Fri Oct 8 15:11:20 2010 *************** *** 32,37 **** --- 32,43 ---- static void winwidget_register(winwidget win); static winwidget winwidget_allocate(void); + #ifdef _AIX51 + long int lround(double x) + { + return( (long int) (x + 0.5) ); + } + #endif int window_num = 0; /* For window list */ winwidget *windows = NULL; /* List of windows to loop though */ *** ./config.mk.ORIG Fri Oct 8 14:52:06 2010 --- ./config.mk Fri Oct 8 15:28:06 2010 *************** *** 2,12 **** VERSION ?= 1.10 # Prefix for all installed files ! PREFIX ?= /usr/local # Directories for manuals, executables, docs, data, etc. main_dir = ${DESTDIR}${PREFIX} ! man_dir = ${main_dir}/share/man bin_dir = ${main_dir}/bin doc_dir = ${main_dir}/share/doc/feh image_dir = ${main_dir}/share/feh/images --- 2,12 ---- VERSION ?= 1.10 # Prefix for all installed files ! PREFIX ?= /opt/freeware # Directories for manuals, executables, docs, data, etc. main_dir = ${DESTDIR}${PREFIX} ! man_dir = ${main_dir}/man bin_dir = ${main_dir}/bin doc_dir = ${main_dir}/share/doc/feh image_dir = ${main_dir}/share/feh/images *************** *** 13,24 **** font_dir = ${main_dir}/share/feh/fonts # default CFLAGS ! CFLAGS ?= -g -O2 ! CFLAGS += -Wall -Wextra -pedantic # Comment these out if you don't have libxinerama ! xinerama = -DHAVE_LIBXINERAMA ! xinerama_ld = -lXinerama # Uncomment this for debug mode # (Use feh -+ or feh --debug to see debug output) --- 13,25 ---- font_dir = ${main_dir}/share/feh/fonts # default CFLAGS ! CC=cc ! CFLAGS = -qmaxmem=16384 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/freeware/include ! LDFLAGS = -L/opt/freeware/lib -Wl,-bmaxdata:0x80000000 # Comment these out if you don't have libxinerama ! #xinerama = -DHAVE_LIBXINERAMA ! #xinerama_ld = -lXinerama # Uncomment this for debug mode # (Use feh -+ or feh --debug to see debug output) *** ./src/Makefile.ORIG Fri Oct 8 15:49:14 2010 --- ./src/Makefile Fri Oct 8 15:54:51 2010 *************** *** 6,12 **** I_SRCS = ${shell echo *.raw} I_DSTS = ${I_SRCS:.raw=.inc} ! feh: deps.mk ${OBJECTS} ${I_DSTS} ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS} include deps.mk --- 6,12 ---- I_SRCS = ${shell echo *.raw} I_DSTS = ${I_SRCS:.raw=.inc} ! feh: ${OBJECTS} ${I_DSTS} ${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS} include deps.mk *************** *** 19,25 **** deps.mk: ${TARGETS} ${I_DSTS} ! ${CC} -MM ${TARGETS} > $@ clean: rm -f feh *.o *.inc --- 19,25 ---- deps.mk: ${TARGETS} ${I_DSTS} ! echo "" > $@ clean: rm -f feh *.o *.inc *** ./src/imlib.c.ORIG Tue Jan 25 16:26:17 2011 --- ./src/imlib.c Tue Jan 25 16:28:30 2011 *************** *** 44,49 **** --- 44,53 ---- XContext xid_context = 0; Window root = 0; + #ifdef _AIX51 + #define AI_NUMERICSERV 0x40 /* RFC 2553, service name is a numeric string */ + #endif + /* Xinerama support */ #ifdef HAVE_LIBXINERAMA XineramaScreenInfo *xinerama_screens = NULL;