Browse code

core: define shm_str_dup() only ifdef SHM_MEM

Andrei Pelinescu-Onciul authored on 03/03/2010 18:29:04
Showing 1 changed files
... ...
@@ -642,6 +642,9 @@ static inline int str2sint(str* _s, int* _r)
642 642
 	return 0;
643 643
 }
644 644
 
645
+
646
+
647
+#ifdef SHM_MEM
645 648
 /**
646 649
  * \brief Make a copy of a str structure using shm_malloc
647 650
  * \param dst destination
... ...
@@ -660,6 +663,9 @@ static inline int shm_str_dup(str* dst, const str* src)
660 660
 	dst->len = src->len;
661 661
 	return 0;
662 662
 }
663
+#endif /* SHM_MEM */
664
+
665
+
663 666
 
664 667
 /**
665 668
  * \brief Make a copy of a str structure using pkg_malloc