Changeset 2276 for trunk


Ignore:
Timestamp:
2001-04-04T10:55:49+12:00 (23 years ago)
Author:
jrm21
Message:

changes to include the right header files, and toplevel config.h

Location:
trunk/gsdl/src/getpw
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/getpw/Makefile.in

    r1802 r2276  
    2727AR = ar
    2828CC = @CC@
    29 CCFLAGS = -Wall @CFLAGS@
     29CFLAGS = @CFLAGS@
     30CXX = @CXX@
     31CXXFLAGS = @CXXFLAGS@
    3032DEFS = @DEFS@
    3133RANLIB = @RANLIB@
    32 INCLUDES =
     34# need to include config.h
     35INCLUDES = -I../..
    3336LDFLAGS = @LDFLAGS@
    3437DPLIBS =
     
    3740
    3841 
    39 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CCFLAGS)
    40 LINK = $(CC) $(LDFLAGS) -o $@
     42LINK = $(CXX) $(LDFLAGS) -o $@
    4143 
    4244.SUFFIXES:
    4345.SUFFIXES: .c .o
    4446.c.o:
    45     $(COMPILE) $<
     47    $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) $<
    4648
    4749.SUFFIXES: .cpp .o
    4850.cpp.o:
    49     $(COMPILE) $<
    50  
     51    $(CXX) -c $(DEFS) $(INCLUDES) $(CXXFLAGS) $<
    5152
    5253HEADERS =
     
    8081getpw: $(GETPW_OBJS) $(DPLIBS)
    8182    $(LINK) $(GETPW_OBJS) $(LIBS)
     83
  • trunk/gsdl/src/getpw/getpw.cpp

    r1600 r2276  
    2828#include "crypt.h"
    2929#else
     30
     31#define _XOPEN_SOURCE 1
     32/* following is for solaris */
     33#define _XOPEN_SOURCE_EXTENDED 1
     34
     35#include "config.h"
    3036#if defined(HAVE_CRYPT_H)
    3137#include <crypt.h>
    32 #else
    33 #define _XOPEN_SOURCE 1
     38#endif
     39
     40#if defined(HAVE_UNISTD_H)
    3441#include <unistd.h>
    3542#endif
    36 #endif
     43/* we are probably in trouble if we have neither crypt.h or unistd.h,
     44   but for now we'll do nothing about it... */
     45
     46#endif  /* not WIN32 */
    3747
    3848#if defined(GSDL_USE_OBJECTSPACE)
Note: See TracChangeset for help on using the changeset viewer.