17c478bd9Sstevel@tonic-gate #include "port_before.h" 27c478bd9Sstevel@tonic-gate #include "port_after.h" 37c478bd9Sstevel@tonic-gate 4*9525b14bSRao Shoaib /*% 57c478bd9Sstevel@tonic-gate * To give a little credit to Sun, SGI, 67c478bd9Sstevel@tonic-gate * and many vendors in the SysV world. 77c478bd9Sstevel@tonic-gate */ 87c478bd9Sstevel@tonic-gate 97c478bd9Sstevel@tonic-gate #if !defined(NEED_PUTENV) 107c478bd9Sstevel@tonic-gate int __bindcompat_putenv; 117c478bd9Sstevel@tonic-gate #else 127c478bd9Sstevel@tonic-gate int putenv(char * str)137c478bd9Sstevel@tonic-gateputenv(char *str) { 147c478bd9Sstevel@tonic-gate char *tmp; 157c478bd9Sstevel@tonic-gate 167c478bd9Sstevel@tonic-gate for (tmp = str; *tmp && (*tmp != '='); tmp++) 177c478bd9Sstevel@tonic-gate ; 187c478bd9Sstevel@tonic-gate 197c478bd9Sstevel@tonic-gate return (setenv(str, tmp, 1)); 207c478bd9Sstevel@tonic-gate } 217c478bd9Sstevel@tonic-gate #endif 22*9525b14bSRao Shoaib 23*9525b14bSRao Shoaib /*! \file */ 24