Skip to content

Commit

Permalink
fix: gcc compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
hongcai.dhc committed Jan 29, 2017
1 parent 89b4656 commit c7d0e21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ libshmcache.a: $(SHMCACHE_STATIC_OBJS)
.c:
$(COMPILE) -o $@ $< $(SHMCACHE_STATIC_OBJS) $(LIB_PATH) $(INC_PATH)
.c.o:
$(COMPILE) -c -o $@ $< $(INC_PATH)
$(COMPILE) -c -fPIC -o $@ $< $(INC_PATH)
.c.lo:
$(COMPILE) -c -fPIC -o $@ $< $(INC_PATH)
install:
Expand Down
4 changes: 4 additions & 0 deletions src/shm_list.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
//shm_list.h

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif

#ifndef _SHM_LIST_H
#define _SHM_LIST_H

Expand Down

0 comments on commit c7d0e21

Please sign in to comment.