This liquid is colostrum.
Colostrum or also called first milk is produced by the mammary glands just before giving birth. Beside its immunoprotective effects (contain immune cells and antibodies) it also has a laxative effect that helps babies expel the tarry first stools (meconium).